summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-19 17:15:34 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-19 17:15:34 +0300
commit17f8465e4358d43accfb0b486b87c18e7dedd83b (patch)
tree6fb0c343558ed33e5b80129076f3e76f50ec76e9 /src/graphicsmanager.cpp
parent74de6dfb0178032d5bc0a4ccf53366fbe5e1078b (diff)
downloadmv-17f8465e4358d43accfb0b486b87c18e7dedd83b.tar.gz
mv-17f8465e4358d43accfb0b486b87c18e7dedd83b.tar.bz2
mv-17f8465e4358d43accfb0b486b87c18e7dedd83b.tar.xz
mv-17f8465e4358d43accfb0b486b87c18e7dedd83b.zip
Add functions from OpenGL extension GL_ARB_copy_image.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r--src/graphicsmanager.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp
index d1dd65f30..3609f1e85 100644
--- a/src/graphicsmanager.cpp
+++ b/src/graphicsmanager.cpp
@@ -1004,6 +1004,14 @@ void GraphicsManager::initOpenGLFunctions()
mSupportModernOpengl = false;
logger->log1("buffers extension not found");
}
+ if (supportExtension("GL_ARB_copy_image"))
+ {
+ assignFunction(glCopyImageSubData, "glCopyImageSubData");
+ }
+ else
+ {
+ logger->log1("GL_ARB_copy_image not found");
+ }
if (supportExtension("GL_ARB_shader_objects"))
{
assignFunction(glCreateShader, "glCreateShader");