summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-01 01:59:40 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-01 02:02:11 +0300
commite81ae38c4722046876ab3ed5d53f33a7278056c3 (patch)
treebdfe49a8e1450371fe7700259e971fd1c7c1f1fe /src/graphicsmanager.cpp
parent05b25b1a5420f1c38cfd39a73c6c0442c8d17464 (diff)
downloadManaVerse-e81ae38c4722046876ab3ed5d53f33a7278056c3.tar.gz
ManaVerse-e81ae38c4722046876ab3ed5d53f33a7278056c3.tar.bz2
ManaVerse-e81ae38c4722046876ab3ed5d53f33a7278056c3.tar.xz
ManaVerse-e81ae38c4722046876ab3ed5d53f33a7278056c3.zip
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.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r--src/graphicsmanager.cpp7
1 files 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")))
{