diff options
author | Mike Erwin <significant.bit@gmail.com> | 2016-10-17 09:36:51 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2016-10-17 09:36:51 +0300 |
commit | e7fddc077297f2f722b6eb8350ac2115f7f4a685 (patch) | |
tree | ec6657511d532b7af1ed2118bbe6dc8bb97b59a0 /source/blender/gpu/intern/gpu_texture.c | |
parent | 42677fa937c3567aab42181d4a4dbd7fab0b2a31 (diff) |
OpenGL: disable checks for NPOT texture support
Non-power-of-two textures are always allowed. Keeping the disabled checks in the code in case we support OpenGL ES in the future. Even then it should be a compile-time check, not at run-time.
Diffstat (limited to 'source/blender/gpu/intern/gpu_texture.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_texture.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_texture.c b/source/blender/gpu/intern/gpu_texture.c index 7b30053e0f6..c6cf4dec22e 100644 --- a/source/blender/gpu/intern/gpu_texture.c +++ b/source/blender/gpu/intern/gpu_texture.c @@ -126,10 +126,12 @@ static GPUTexture *GPU_texture_create_nD( return NULL; } +#if 0 /* this should be a compile-time check */ if (!GPU_full_non_power_of_two_support()) { tex->w = power_of_2_max_i(tex->w); tex->h = power_of_2_max_i(tex->h); } +#endif tex->number = 0; glBindTexture(tex->target, tex->bindcode); |