mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-02 09:03:37 +00:00
Add debug option to force enable unbuffred drawer.
This commit is contained in:
parent
3b6aa38b14
commit
8d028a9eaf
|
@ -3,6 +3,7 @@
|
|||
|
||||
#ifdef OS_WINDOWS
|
||||
#include <windows.h>
|
||||
//#define FORCE_UNBUFFERED_DRAWER // Debug option.
|
||||
#elif defined(OS_LINUX)
|
||||
#include <winlnxdefs.h>
|
||||
#endif
|
||||
|
|
|
@ -67,9 +67,11 @@ void ContextImpl::init()
|
|||
}
|
||||
|
||||
{
|
||||
#ifndef FORCE_UNBUFFERED_DRAWER
|
||||
if (!m_glInfo.isGLESX || (m_glInfo.bufferStorage && m_glInfo.drawElementsBaseVertex))
|
||||
m_graphicsDrawer.reset(new BufferedDrawer(m_glInfo, m_cachedFunctions->getCachedVertexAttribArray(), m_cachedFunctions->getCachedBindBuffer()));
|
||||
else
|
||||
#endif
|
||||
m_graphicsDrawer.reset(new UnbufferedDrawer(m_glInfo, m_cachedFunctions->getCachedVertexAttribArray()));
|
||||
}
|
||||
|
||||
|
|
|
@ -84,7 +84,11 @@ bool WindowsWGL::start()
|
|||
{
|
||||
WGL_CONTEXT_MAJOR_VERSION_ARB, majorVersion,
|
||||
WGL_CONTEXT_MINOR_VERSION_ARB, minorVersion,
|
||||
#ifdef FORCE_UNBUFFERED_DRAWER
|
||||
WGL_CONTEXT_PROFILE_MASK_ARB, WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB,
|
||||
#else
|
||||
WGL_CONTEXT_PROFILE_MASK_ARB, WGL_CONTEXT_CORE_PROFILE_BIT_ARB,
|
||||
#endif
|
||||
0 //End
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user