update to glew1.9, win binaries also from official release
This commit is contained in:
BIN
Binary file not shown.
BIN
Binary file not shown.
Vendored
+17132
-15343
File diff suppressed because it is too large
Load Diff
Vendored
+1637
-1537
File diff suppressed because it is too large
Load Diff
Vendored
+1397
-1287
File diff suppressed because it is too large
Load Diff
Vendored
+16972
-15201
File diff suppressed because it is too large
Load Diff
Vendored
+9984
-8942
File diff suppressed because it is too large
Load Diff
Vendored
+1178
-1173
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user