update to glew1.9, win binaries also from official release

This commit is contained in:
degasus
2013-02-04 21:11:12 +01:00
parent 2108529120
commit f677b8cba3
11 changed files with 48310 additions and 43490 deletions
Vendored Regular → Executable
BIN
View File
Binary file not shown.
Vendored Regular → Executable
BIN
View File
Binary file not shown.
+17132 -15343
View File
File diff suppressed because it is too large Load Diff
+1637 -1537
View File
File diff suppressed because it is too large Load Diff
+1397 -1287
View File
File diff suppressed because it is too large Load Diff
+16972 -15201
View File
File diff suppressed because it is too large Load Diff
+9984 -8942
View File
File diff suppressed because it is too large Load Diff
+1178 -1173
View File
File diff suppressed because it is too large Load Diff
@@ -164,6 +164,7 @@ struct VideoConfig
bool bSupportsGLSLUBO; bool bSupportsGLSLUBO;
bool bSupportsGLSLCache; bool bSupportsGLSLCache;
bool bSupportsGLPinnedMemory;
} backend_info; } backend_info;
// Utility // Utility
@@ -301,20 +301,22 @@ Renderer::Renderer()
bSuccess = false; bSuccess = false;
} }
s_bHaveCoverageMSAA = glewIsSupported("GL_NV_framebuffer_multisample_coverage"); s_bHaveCoverageMSAA = GLEW_NV_framebuffer_multisample_coverage;
g_Config.backend_info.bSupportsDualSourceBlend = glewIsSupported("GL_ARB_blend_func_extended"); g_Config.backend_info.bSupportsDualSourceBlend = GLEW_ARB_blend_func_extended;
g_Config.backend_info.bSupportsGLSLUBO = glewIsSupported("GL_ARB_uniform_buffer_object"); g_Config.backend_info.bSupportsGLSLUBO = GLEW_ARB_uniform_buffer_object;
g_Config.backend_info.bSupportsGLPinnedMemory = GLEW_AMD_pinned_memory;
//TODO: revert this after cache is fixed itself //TODO: revert this after cache is fixed itself
g_Config.backend_info.bSupportsGLSLCache = false; // glewIsSupported("GL_ARB_get_program_binary") g_Config.backend_info.bSupportsGLSLCache = false; // GLEW_ARB_get_program_binary
UpdateActiveConfig(); UpdateActiveConfig();
OSD::AddMessage(StringFromFormat("Supports Blending: %s UBOs: %s Cache: %s", OSD::AddMessage(StringFromFormat("Supports Blending: %s UBOs: %s PinnedMem: %s",
g_ActiveConfig.backend_info.bSupportsDualSourceBlend ? "True" : "False", g_ActiveConfig.backend_info.bSupportsDualSourceBlend ? "True" : "False",
g_ActiveConfig.backend_info.bSupportsGLSLUBO ? "True" : "False", g_ActiveConfig.backend_info.bSupportsGLSLUBO ? "True" : "False",
g_ActiveConfig.backend_info.bSupportsGLSLCache ? "True" : "False").c_str(), 5000); g_ActiveConfig.backend_info.bSupportsGLPinnedMemory ? "True" : "False").c_str(), 5000);
s_LastMultisampleMode = g_ActiveConfig.iMultisampleMode; s_LastMultisampleMode = g_ActiveConfig.iMultisampleMode;
s_MSAASamples = GetNumMSAASamples(s_LastMultisampleMode); s_MSAASamples = GetNumMSAASamples(s_LastMultisampleMode);
@@ -38,7 +38,7 @@ StreamBuffer::StreamBuffer(u32 type, size_t size, StreamType uploadType)
if(m_uploadtype == STREAM_DETECT) if(m_uploadtype == STREAM_DETECT)
{ {
if(glewIsSupported("GL_AMD_pinned_memory")) if(g_Config.backend_info.bSupportsGLPinnedMemory)
m_uploadtype = PINNED_MEMORY; m_uploadtype = PINNED_MEMORY;
else else
m_uploadtype = MAP_AND_SYNC; m_uploadtype = MAP_AND_SYNC;