diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-13 15:56:56 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-13 15:56:56 +0300 |
commit | cd0baf3217701134a8e61932fd14c39cec0cf242 (patch) | |
tree | 7d18a8b58d753865c3de9027fd384035375c7ab9 /src/resources/openglimagehelper.cpp | |
parent | e71aed97c2d885c8113561c1e0cad91454adeb57 (diff) | |
download | plus-cd0baf3217701134a8e61932fd14c39cec0cf242.tar.gz plus-cd0baf3217701134a8e61932fd14c39cec0cf242.tar.bz2 plus-cd0baf3217701134a8e61932fd14c39cec0cf242.tar.xz plus-cd0baf3217701134a8e61932fd14c39cec0cf242.zip |
Fix compilation errors with different flags.
Also fix renderer selection in build without OpenGL.
Diffstat (limited to 'src/resources/openglimagehelper.cpp')
-rw-r--r-- | src/resources/openglimagehelper.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/resources/openglimagehelper.cpp b/src/resources/openglimagehelper.cpp index c41538b2e..014c33362 100644 --- a/src/resources/openglimagehelper.cpp +++ b/src/resources/openglimagehelper.cpp @@ -50,7 +50,6 @@ int OpenGLImageHelper::mTextureType = 0; int OpenGLImageHelper::mInternalTextureType = GL_RGBA8; int OpenGLImageHelper::mTextureSize = 0; bool OpenGLImageHelper::mBlur = true; -RenderType OpenGLImageHelper::mUseOpenGL = RENDER_SOFTWARE; bool OpenGLImageHelper::mUseTextureSampler = false; Image *OpenGLImageHelper::load(SDL_RWops *const rw, Dye const &dye) const @@ -279,16 +278,6 @@ Image *OpenGLImageHelper::glLoad(SDL_Surface *tmpImage, return new Image(texture, width, height, realWidth, realHeight); } -void OpenGLImageHelper::setLoadAsOpenGL(const RenderType useOpenGL) -{ - mUseOpenGL = useOpenGL; -} - -RenderType OpenGLImageHelper::useOpenGL() const -{ - return mUseOpenGL; -} - void OpenGLImageHelper::initTextureSampler(const GLint id) { if (mBlur) |