make test compile with latest opengl version

This commit is contained in:
Andreas Rumpf 2016-07-30 09:46:27 +02:00
commit 2605c8c4ce
3 changed files with 3 additions and 3 deletions

View file

@ -25,7 +25,7 @@ proc whiteTex*(): TTex =
setTexParams()
var pixel = [255'u8, 255'u8, 255'u8, 255'u8]
?glTexImage2D(GLtexture2D, 0, GL_RGBA, 1, 1, 0, GL_BGRA, cGLUnsignedByte, pixel[0].addr)
?glTexImage2D(GLtexture2D, 0, GLint GL_RGBA, 1, 1, 0, GL_BGRA, cGLUnsignedByte, pixel[0].addr)
?glBindTexture(GLtexture2D, 0)
result = gWhiteTex