X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Ftexture.cpp;h=c27e850676b83153de81ef09b4d76282e481e091;hb=e6077f9f25b794c174e1017c2c0763e77a6fddda;hp=33a7b21ba8b429c63311cffdb4635f947e0f3201;hpb=acaefb4c669f01855252818ef0a2958cbdababc3;p=libs%2Fgl.git diff --git a/source/core/texture.cpp b/source/core/texture.cpp index 33a7b21b..c27e8506 100644 --- a/source/core/texture.cpp +++ b/source/core/texture.cpp @@ -108,7 +108,7 @@ void Texture::apply_swizzle() if(swizzle==NO_SWIZZLE) return; - if(get_gl_api()==OPENGL_ES2) + if(get_backend_api()==OPENGL_ES) { set_parameter_i(GL_TEXTURE_SWIZZLE_R, swizzle_orders[swizzle*4]); set_parameter_i(GL_TEXTURE_SWIZZLE_G, swizzle_orders[swizzle*4+1]);