]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_shared.c
now clears stencil to 128 instead of 0, this avoids problems with arbitrary incr...
[xonotic/darkplaces.git] / vid_shared.c
index 88f2dbb8418820e0ec3c7579c8c7120e8e613aaa..2743742d0bd61a0ccc3c3ef5164d850b856ce8ed 100644 (file)
@@ -181,6 +181,8 @@ void (GLAPIENTRY *qglCopyTexSubImage3D)(GLenum target, GLint level, GLint xoffse
 
 void (GLAPIENTRY *qglScissor)(GLint x, GLint y, GLsizei width, GLsizei height);
 
+void (GLAPIENTRY *qglPolygonOffset)(GLfloat factor, GLfloat units);
+
 int GL_CheckExtension(const char *name, const gl_extensionfunctionlist_t *funcs, const char *disableparm, int silent)
 {
        int failed = false;
@@ -305,6 +307,7 @@ static gl_extensionfunctionlist_t opengl110funcs[] =
        {"glCopyTexSubImage1D", (void **) &qglCopyTexSubImage1D},
        {"glCopyTexSubImage2D", (void **) &qglCopyTexSubImage2D},
        {"glScissor", (void **) &qglScissor},
+       {"glPolygonOffset", (void **) &qglPolygonOffset},
        {NULL, NULL}
 };