[buffer_storage] Require GLEW 1.10 which has the new OpenGL 4.4 methods. Fixes linux build.

This commit is contained in:
Ryan Houdek 2013-12-27 15:37:31 -06:00
parent ce99921c20
commit d8ceb97a60
3 changed files with 6 additions and 5 deletions

View File

@ -661,7 +661,7 @@ else()
if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin") if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
include(FindGLEW) include(FindGLEW)
endif() endif()
if(NOT GLEW_FOUND OR NOT GLEW_HAS_1_9_METHODS) if(NOT GLEW_FOUND OR NOT GLEW_HAS_1_10_METHODS)
message("Using static GLEW from Externals") message("Using static GLEW from Externals")
add_subdirectory(Externals/GLew) add_subdirectory(Externals/GLew)
include_directories(Externals/GLew/include) include_directories(Externals/GLew/include)

View File

@ -10,13 +10,14 @@ macro(test_glew)
#include <GL/glew.h> #include <GL/glew.h>
int main() int main()
{ {
#ifdef GLEW_ARB_shader_image_load_store #ifdef GLEW_ARB_buffer_storage
return 0; return 0;
#else #else
return 1; return 1;
#endif #endif
}" }"
GLEW_HAS_1_9_METHODS) GLEW_HAS_1_10_METHODS)
endmacro() endmacro()
if(PKG_CONFIG_FOUND AND NOT ${var}_FOUND) if(PKG_CONFIG_FOUND AND NOT ${var}_FOUND)
@ -25,7 +26,7 @@ endif()
if(GLEW_FOUND) if(GLEW_FOUND)
test_glew() test_glew()
if (GLEW_HAS_1_9_METHODS) if (GLEW_HAS_1_10_METHODS)
include_directories(${GLEW_INCLUDE_DIRS}) include_directories(${GLEW_INCLUDE_DIRS})
message("GLEW found") message("GLEW found")
endif() endif()

View File

@ -547,7 +547,7 @@ Renderer::Renderer()
g_ogl_config.gl_renderer, g_ogl_config.gl_renderer,
g_ogl_config.gl_version), 5000); g_ogl_config.gl_version), 5000);
WARN_LOG(VIDEO,"Missing OGL Extensions: %s%s%s%s%s%s%s%s%s%s", WARN_LOG(VIDEO,"Missing OGL Extensions: %s%s%s%s%s%s%s%s%s%s%s",
g_ActiveConfig.backend_info.bSupportsDualSourceBlend ? "" : "DualSourceBlend ", g_ActiveConfig.backend_info.bSupportsDualSourceBlend ? "" : "DualSourceBlend ",
g_ActiveConfig.backend_info.bSupportsGLSLUBO ? "" : "UniformBuffer ", g_ActiveConfig.backend_info.bSupportsGLSLUBO ? "" : "UniformBuffer ",
g_ActiveConfig.backend_info.bSupportsPrimitiveRestart ? "" : "PrimitiveRestart ", g_ActiveConfig.backend_info.bSupportsPrimitiveRestart ? "" : "PrimitiveRestart ",