1
0
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:
Sergey Lipskiy 2020-12-23 16:50:39 +07:00
parent 3b6aa38b14
commit 8d028a9eaf
3 changed files with 7 additions and 0 deletions

View File

@ -3,6 +3,7 @@
#ifdef OS_WINDOWS
#include <windows.h>
//#define FORCE_UNBUFFERED_DRAWER // Debug option.
#elif defined(OS_LINUX)
#include <winlnxdefs.h>
#endif

View File

@ -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()));
}

View File

@ -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
};