Browse Source

Fixed missed boolean check

Zachary Lund 11 years ago
parent
commit
cc44c93fbf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libobs-opengl/gl-windows.c

+ 1 - 1
libobs-opengl/gl-windows.c

@@ -237,7 +237,7 @@ static inline void required_extension_error(const char *extension)
 
 
 static bool gl_init_extensions(HDC hdc)
 static bool gl_init_extensions(HDC hdc)
 {
 {
-	if (wgl_LoadFunctions(hdc)) {
+	if (!wgl_LoadFunctions(hdc)) {
 		blog(LOG_ERROR, "Failed to load WGL entry functions.");
 		blog(LOG_ERROR, "Failed to load WGL entry functions.");
 		return false;
 		return false;
 	}
 	}