]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_draw.c
remove some r_render checks, and added an r_render check to vid_sdl.c VID_Finish
[xonotic/darkplaces.git] / gl_draw.c
index 95f9e7bd9869072fbb9d5adda8c53cfcefd85dc4..2db1c747565f6dc22392ee12845f8ea5874e2fff 100644 (file)
--- a/gl_draw.c
+++ b/gl_draw.c
@@ -545,9 +545,6 @@ void DrawQ_String_Real(float x, float y, const char *string, int maxlen, float w
                return;
        }
 
-       if (!r_render.integer)
-               return;
-
        if (alpha < (1.0f / 255.0f))
                return;
 
@@ -742,9 +739,6 @@ void DrawQ_SuperPic(float x, float y, cachepic_t *pic, float width, float height
                return;
        }
 
-       if (!r_render.integer)
-               return;
-
        _DrawQ_ProcessDrawFlag(flags);
 
        R_Mesh_VertexPointer(floats);
@@ -785,9 +779,6 @@ void DrawQ_Mesh (drawqueuemesh_t *mesh, int flags)
                return;
        }
 
-       if (!r_render.integer)
-               return;
-
        _DrawQ_ProcessDrawFlag(flags);
 
        R_Mesh_VertexPointer(mesh->data_vertex3f);
@@ -811,9 +802,6 @@ void DrawQ_LineLoop (drawqueuemesh_t *mesh, int flags)
                return;
        }
 
-       if (!r_render.integer)
-               return;
-
        _DrawQ_ProcessDrawFlag(flags);
 
        GL_Color(1,1,1,1);
@@ -850,9 +838,6 @@ void DrawQ_Line (float width, float x1, float y1, float x2, float y2, float r, f
                return;
        }
 
-       if (!r_render.integer)
-               return;
-
        CHECKGLERROR
        if(width > 0)
                DrawQ_LineWidth(width);