mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
check for GL_ARB_sync, it's in ogl 3.2
This commit is contained in:
@ -165,6 +165,7 @@ struct VideoConfig
|
|||||||
bool bSupportsGLSLUBO;
|
bool bSupportsGLSLUBO;
|
||||||
bool bSupportsGLSLCache;
|
bool bSupportsGLSLCache;
|
||||||
bool bSupportsGLPinnedMemory;
|
bool bSupportsGLPinnedMemory;
|
||||||
|
bool bSupportsGLSync;
|
||||||
} backend_info;
|
} backend_info;
|
||||||
|
|
||||||
// Utility
|
// Utility
|
||||||
|
@ -309,6 +309,8 @@ Renderer::Renderer()
|
|||||||
|
|
||||||
g_Config.backend_info.bSupportsGLPinnedMemory = GLEW_AMD_pinned_memory;
|
g_Config.backend_info.bSupportsGLPinnedMemory = GLEW_AMD_pinned_memory;
|
||||||
|
|
||||||
|
g_Config.backend_info.bSupportsGLSync = GLEW_ARB_sync;
|
||||||
|
|
||||||
//TODO: revert this after cache is fixed itself
|
//TODO: revert this after cache is fixed itself
|
||||||
g_Config.backend_info.bSupportsGLSLCache = false; // GLEW_ARB_get_program_binary
|
g_Config.backend_info.bSupportsGLSLCache = false; // GLEW_ARB_get_program_binary
|
||||||
|
|
||||||
|
@ -38,10 +38,12 @@ StreamBuffer::StreamBuffer(u32 type, size_t size, StreamType uploadType)
|
|||||||
|
|
||||||
if(m_uploadtype == STREAM_DETECT)
|
if(m_uploadtype == STREAM_DETECT)
|
||||||
{
|
{
|
||||||
if(g_Config.backend_info.bSupportsGLPinnedMemory)
|
if(g_Config.backend_info.bSupportsGLPinnedMemory && g_Config.backend_info.bSupportsGLSync)
|
||||||
m_uploadtype = PINNED_MEMORY;
|
m_uploadtype = PINNED_MEMORY;
|
||||||
else
|
else if(g_Config.backend_info.bSupportsGLSync)
|
||||||
m_uploadtype = MAP_AND_RISK;
|
m_uploadtype = MAP_AND_RISK;
|
||||||
|
else
|
||||||
|
m_uploadtype = MAP_AND_ORPHAN;
|
||||||
}
|
}
|
||||||
|
|
||||||
Init();
|
Init();
|
||||||
|
Reference in New Issue
Block a user