From e81ae38c4722046876ab3ed5d53f33a7278056c3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 1 Jun 2015 01:59:40 +0300 Subject: Emulate OpenGL function glTextureSubImage2D always. Because I not have hardware with supported this function and on NVIDIA cards look like it may not work. This issue may break texture atlases. --- src/graphicsmanager.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index c57da0738..8cdfac108 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -910,18 +910,19 @@ void GraphicsManager::initOpenGLFunctions() if (is45) { logger->log1("found GL_EXT_direct_state_access"); - assignFunctionEmu2(glTextureSubImage2D, "glTextureSubImage2D"); +// assignFunctionEmu2(glTextureSubImage2D, "glTextureSubImage2D"); } else if (supportExtension("GL_EXT_direct_state_access")) { logger->log1("found GL_EXT_direct_state_access"); - assignFunctionEmu2(glTextureSubImage2D, "glTextureSubImage2DEXT"); +// assignFunctionEmu2(glTextureSubImage2D, "glTextureSubImage2DEXT"); } else { logger->log1("GL_EXT_direct_state_access not found"); - emulateFunction(glTextureSubImage2D); +// emulateFunction(glTextureSubImage2D); } + emulateFunction(glTextureSubImage2D); if (is12 && (is42 || supportExtension("GL_ARB_texture_storage"))) { -- cgit v1.2.3-70-g09d2