changeset 19933:2eed41ae3b64

Fix computation of next-power-of-2 for height in OpenGL texture creation. * gl-render.cc (opengl_texture::create): Use 'h', not 'w', as argument to compute 'th'.
author Daniel J Sebald <daniel.sebald@ieee.org>
date Tue, 03 Mar 2015 18:25:16 -0600
parents 371aa9261b1a
children a8a5415b05cb
files libinterp/corefcn/gl-render.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/gl-render.cc	Wed Mar 04 11:29:47 2015 +0000
+++ b/libinterp/corefcn/gl-render.cc	Tue Mar 03 18:25:16 2015 -0600
@@ -178,7 +178,7 @@
       bool ok = true;
 
       tw = next_power_of_2 (w);
-      th = next_power_of_2 (w);
+      th = next_power_of_2 (h);
 
       glGenTextures (1, &id);
       glBindTexture (GL_TEXTURE_2D, id);