# HG changeset patch # User Daniel J Sebald # Date 1425428716 21600 # Node ID 2eed41ae3b6474644dc5f793d83a215459c0a634 # Parent 371aa9261b1a87a8760262480e8fbb34f5aff69a 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'. diff -r 371aa9261b1a -r 2eed41ae3b64 libinterp/corefcn/gl-render.cc --- 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);