/*-----------------------------------------------------------------------*/
-//int texture_mode = GL_NEAREST;
-//int texture_mode = GL_NEAREST_MIPMAP_NEAREST;
-//int texture_mode = GL_NEAREST_MIPMAP_LINEAR;
-int texture_mode = GL_LINEAR;
-//int texture_mode = GL_LINEAR_MIPMAP_NEAREST;
-//int texture_mode = GL_LINEAR_MIPMAP_LINEAR;
-
int texture_extension_number = 1;
float gldepthmin, gldepthmax;
void GL_EndRendering (void)
{
+ if (!r_render.value)
+ return;
glFlush();
fxMesaSwapBuffers();
}