Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Erwin <significant.bit@gmail.com>2016-10-17 09:36:51 +0300
committerMike Erwin <significant.bit@gmail.com>2016-10-17 09:36:51 +0300
commite7fddc077297f2f722b6eb8350ac2115f7f4a685 (patch)
treeec6657511d532b7af1ed2118bbe6dc8bb97b59a0 /source/blender/gpu/intern/gpu_texture.c
parent42677fa937c3567aab42181d4a4dbd7fab0b2a31 (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.c2
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);