Fix an issue with invalid texture number usage in measure_texel_subpixel_precision().
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 22 Dec 2013 22:46:51 +0000 (23:46 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 22 Dec 2013 22:46:51 +0000 (23:46 +0100)
init.cpp

index 195dcca..f6dd904 100644 (file)
--- a/init.cpp
+++ b/init.cpp
@@ -48,9 +48,9 @@ void measure_texel_subpixel_precision()
        // Now generate a simple texture that's just [0,1].
        GLuint src_texnum;
        float texdata[] = { 0, 1 };
-       glGenTextures(1, &dst_texnum);
+       glGenTextures(1, &src_texnum);
        check_error();
-       glBindTexture(GL_TEXTURE_1D, dst_texnum);
+       glBindTexture(GL_TEXTURE_1D, src_texnum);
        check_error();
        glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
        check_error();