summaryrefslogtreecommitdiff
path: root/src/resources/openglimagehelper.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-15 19:13:15 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-15 19:13:15 +0300
commit5490b25e6cb99bfea3d4234c90d717575855eaf8 (patch)
tree78c22d0011d5784ba4994686c6dc46413933077c /src/resources/openglimagehelper.cpp
parent1ffeeb5d960ecf45ff285b8045265bb38de86b18 (diff)
downloadplus-5490b25e6cb99bfea3d4234c90d717575855eaf8.tar.gz
plus-5490b25e6cb99bfea3d4234c90d717575855eaf8.tar.bz2
plus-5490b25e6cb99bfea3d4234c90d717575855eaf8.tar.xz
plus-5490b25e6cb99bfea3d4234c90d717575855eaf8.zip
Replace in openglimagehelper all gl functions calls into defines.
Diffstat (limited to 'src/resources/openglimagehelper.cpp')
-rw-r--r--src/resources/openglimagehelper.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/resources/openglimagehelper.cpp b/src/resources/openglimagehelper.cpp
index 0d98fcfe7..ebb4f27a0 100644
--- a/src/resources/openglimagehelper.cpp
+++ b/src/resources/openglimagehelper.cpp
@@ -336,20 +336,20 @@ Image *OpenGLImageHelper::glLoad(SDL_Surface *tmpImage,
{
if (mBlur)
{
- glTexParameteri(mTextureType, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
- glTexParameteri(mTextureType, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
+ mglTexParameteri(mTextureType, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
+ mglTexParameteri(mTextureType, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
}
else
{
- glTexParameteri(mTextureType, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
- glTexParameteri(mTextureType, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
+ mglTexParameteri(mTextureType, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
+ mglTexParameteri(mTextureType, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
}
}
#ifndef ANDROID
- glTexParameteri(mTextureType, GL_TEXTURE_MAX_LEVEL, 0);
+ mglTexParameteri(mTextureType, GL_TEXTURE_MAX_LEVEL, 0);
#endif
- glTexImage2D(mTextureType, 0, mInternalTextureType,
+ mglTexImage2D(mTextureType, 0, mInternalTextureType,
tmpImage->w, tmpImage->h,
0, GL_RGBA, GL_UNSIGNED_BYTE, tmpImage->pixels);
@@ -445,7 +445,7 @@ GLuint OpenGLImageHelper::getNewTexture()
void OpenGLImageHelper::postInit()
{
- glGenTextures(texturesSize, &mTextures[mFreeTextureIndex]);
+ mglGenTextures(texturesSize, &mTextures[mFreeTextureIndex]);
}
void OpenGLImageHelper::invalidate(const GLuint textureId)