OpenGL: remove non-power-of-two texture check, where even ES 2.0 does not need it.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -1680,6 +1680,6 @@ void RAS_OpenGLRasterizer::PrintHardwareInfo()
|
||||
|
||||
pprint(" GL_ARB_texture_env_combine supported? "<< (GLEW_ARB_texture_env_combine?"yes.":"no."));
|
||||
|
||||
pprint(" GL_ARB_texture_non_power_of_two supported " << (GPU_non_power_of_two_support()?"yes.":"no."));
|
||||
pprint(" GL_ARB_texture_non_power_of_two supported " << (GPU_full_non_power_of_two_support()?"yes.":"no."));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user