소스 검색

Simplified call to platform-specific extension check.

Camilla Berglund 13 년 전
부모
커밋
a916997c86
1개의 변경된 파일2개의 추가작업 그리고 5개의 파일을 삭제
  1. 2 5
      src/opengl.c

+ 2 - 5
src/opengl.c

@@ -639,11 +639,8 @@ GLFWAPI int glfwExtensionSupported(const char* extension)
         }
     }
 
-    // Additional platform specific extension checking (e.g. WGL)
-    if (_glfwPlatformExtensionSupported(extension))
-        return GL_TRUE;
-
-    return GL_FALSE;
+    // Check if extension is in the platform-specific string
+    return _glfwPlatformExtensionSupported(extension);
 }