diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2015-09-21 17:27:50 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2015-09-29 14:33:56 -0700 |
commit | ff1bb98a1d7fb315a7143daf9c969d61eed590f5 (patch) | |
tree | 5b3a8b627a19e8acede57cd0e38bb1cc4b2b36e3 /tests | |
parent | 9be2ce862e4edc3c6eae3efcaf6def1b52f77e73 (diff) |
glean: Just use glTexImage2D in ttexgen
The test sets the filter modes to GL_NEAREST, so levels other than zero
are never used.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Thanked-by: Kristian Høgsberg <krh@bitplanet.net>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/glean/ttexgen.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/glean/ttexgen.cpp b/tests/glean/ttexgen.cpp index e81c2a5b2..f44cb9a6d 100644 --- a/tests/glean/ttexgen.cpp +++ b/tests/glean/ttexgen.cpp @@ -231,7 +231,9 @@ TexgenTest::runOne(BasicResult& r, Window&) { redBlueCheck[(x+(256*y))*3 + 2] = ((xPastHalf && !yPastHalf) || (!xPastHalf && yPastHalf)) ? 255 : 0; } } - gluBuild2DMipmaps(GL_TEXTURE_2D, GL_RGB, 256, 256, GL_RGB, GL_UNSIGNED_BYTE, redBlueCheck); + + glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 256, 256, 0, GL_RGB, + GL_UNSIGNED_BYTE, redBlueCheck); // Setup our arrays of configuration info; we loop over the rendering pass a number of times, // using a different GL primitive path each time. |