From b25e4b310f87fc86942acd29fccf1474ea5120df Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sun, 6 Dec 2015 21:41:21 +0100 Subject: OpenGL: remove non-power-of-two texture check, where even ES 2.0 does not need it. --- source/gameengine/Ketsji/BL_Texture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/gameengine/Ketsji') diff --git a/source/gameengine/Ketsji/BL_Texture.cpp b/source/gameengine/Ketsji/BL_Texture.cpp index 17bd8c31231..d14b9cc57b8 100644 --- a/source/gameengine/Ketsji/BL_Texture.cpp +++ b/source/gameengine/Ketsji/BL_Texture.cpp @@ -195,7 +195,7 @@ bool BL_Texture::InitFromImage(int unit, Image *img, bool mipmap) void BL_Texture::InitGLTex(unsigned int *pix,int x,int y,bool mipmap) { - if (!GPU_non_power_of_two_support() && (!is_power_of_2_i(x) || !is_power_of_2_i(y)) ) { + if (!GPU_full_non_power_of_two_support() && (!is_power_of_2_i(x) || !is_power_of_2_i(y)) ) { InitNonPow2Tex(pix, x,y,mipmap); return; } -- cgit v1.2.3