Browse Source

Changed version checks... I got most of them wrong.

Zachary Lund 11 years ago
parent
commit
9a2b662935
1 changed files with 3 additions and 3 deletions
  1. 3 3
      libobs-opengl/gl-subsystem.c

+ 3 - 3
libobs-opengl/gl-subsystem.c

@@ -99,13 +99,13 @@ static bool gl_init_extensions(struct gs_device* device)
 
 	gl_enable_debug();
 
-	if (!ogl_IsVersionGEQ(2, 1) && !ogl_ext_ARB_framebuffer_object) {
+	if (!ogl_IsVersionGEQ(3, 0) && !ogl_ext_ARB_framebuffer_object) {
 		blog(LOG_ERROR, "OpenGL extension ARB_framebuffer_object "
 		                "is required.");
 		return false;
 	}
 
-	if (ogl_IsVersionGEQ(3, 1) || ogl_ext_ARB_seamless_cube_map) {
+	if (ogl_IsVersionGEQ(3, 2) || ogl_ext_ARB_seamless_cube_map) {
 		gl_enable(GL_TEXTURE_CUBE_MAP_SEAMLESS);
 	}
 
@@ -115,7 +115,7 @@ static bool gl_init_extensions(struct gs_device* device)
 		return false;
 	}
 
-	if (ogl_IsVersionGEQ(4, 2) || ogl_ext_ARB_copy_image)
+	if (ogl_IsVersionGEQ(4, 3) || ogl_ext_ARB_copy_image)
 		device->copy_type = COPY_TYPE_ARB;
 	else if (ogl_ext_NV_copy_image)
 		device->copy_type = COPY_TYPE_NV;