summaryrefslogtreecommitdiff
path: root/source/gl_mesh.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2007-11-26 01:13:18 +0000
committerAndrey Nazarov <skuller@skuller.net>2007-11-26 01:13:18 +0000
commit7c8eba32ec52c9158625ec5520c7c05880e70bc1 (patch)
treea826afc6c9650958a24e8fa1feca575c95bcdb27 /source/gl_mesh.c
parent4de7c5a54c5256f65756c80241967d315bf27422 (diff)
Release mouse in windowed mode if paused.
Brought original Q2 `pause' image back. Made Draw_GetPicSize return original image height instead of scaled. Re-implemented gl_showtris.
Diffstat (limited to 'source/gl_mesh.c')
-rw-r--r--source/gl_mesh.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/gl_mesh.c b/source/gl_mesh.c
index e42599d..6296055 100644
--- a/source/gl_mesh.c
+++ b/source/gl_mesh.c
@@ -397,8 +397,10 @@ void GL_DrawAliasModel( model_t *model ) {
#endif
if( gl_showtris->integer ) {
- //Tess_DrawSurfaceTriangles( ( int * )mesh->indices,
- // mesh->numIndices );
+ GL_EnableOutlines();
+ qglDrawElements( GL_TRIANGLES, mesh->numIndices, GL_UNSIGNED_INT,
+ mesh->indices );
+ GL_DisableOutlines();
}
if( qglUnlockArraysEXT ) {
qglUnlockArraysEXT();