]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid.h
Implement OpenGL version checking, use it for occlusion queries
[xonotic/darkplaces.git] / vid.h
diff --git a/vid.h b/vid.h
index 8ddf76c4ff6bff88c87b5ec46dd56d243f2455e2..8f1977bc9ef7fd66c9a1460460d07293fad90f25 100644 (file)
--- a/vid.h
+++ b/vid.h
@@ -41,6 +41,7 @@ renderpath_t;
 
 typedef struct viddef_support_s
 {
+       int glversion; // this is at least 32
        int glshaderversion; // this is at least 150 (GL 3.2)
        qbool amd_texture_texture4;
        qbool arb_texture_gather;
@@ -199,6 +200,7 @@ qbool GL_ExtensionSupported(const char *name);
 
 void VID_Shared_Init(void);
 
+void GL_InitFunctions(void);
 void GL_Setup(void);
 
 void VID_ClearExtensions(void);