summary refs log tree commit diff stats
path: root/tests/manyloc/named_argument_bug/tri_engine
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-07-30 09:46:27 +0200
committerAndreas Rumpf <rumpf_a@web.de>2016-07-30 09:46:27 +0200
commit2605c8c4ced0b088d5619d86903d659e8ff89a76 (patch)
tree2b7d471d4709f6e8a186d296a2648e4e8bef97dd /tests/manyloc/named_argument_bug/tri_engine
parenta8edf67a280155a33b57785866d41fca249b9909 (diff)
downloadNim-2605c8c4ced0b088d5619d86903d659e8ff89a76.tar.gz
make test compile with latest opengl version
Diffstat (limited to 'tests/manyloc/named_argument_bug/tri_engine')
-rw-r--r--tests/manyloc/named_argument_bug/tri_engine/gfx/gl/gl.nim2
-rw-r--r--tests/manyloc/named_argument_bug/tri_engine/gfx/gl/shader.nim2
-rw-r--r--tests/manyloc/named_argument_bug/tri_engine/gfx/tex.nim2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/manyloc/named_argument_bug/tri_engine/gfx/gl/gl.nim b/tests/manyloc/named_argument_bug/tri_engine/gfx/gl/gl.nim
index 22d36ef4d..7d787c07b 100644
--- a/tests/manyloc/named_argument_bug/tri_engine/gfx/gl/gl.nim
+++ b/tests/manyloc/named_argument_bug/tri_engine/gfx/gl/gl.nim
@@ -6,7 +6,7 @@ export
   opengl
 
 type
-  EGL* = object of E_Base
+  EGL* = object of Exception
   EGL_code* = object of EGL
     code*: EGL_err
   EGL_err {.pure.} = enum
diff --git a/tests/manyloc/named_argument_bug/tri_engine/gfx/gl/shader.nim b/tests/manyloc/named_argument_bug/tri_engine/gfx/gl/shader.nim
index 89bb76064..970885b3d 100644
--- a/tests/manyloc/named_argument_bug/tri_engine/gfx/gl/shader.nim
+++ b/tests/manyloc/named_argument_bug/tri_engine/gfx/gl/shader.nim
@@ -8,7 +8,7 @@ type
   TShaderType* {.pure.} = enum
     frag = GL_FRAGMENT_SHADER,
     vert   = GL_VERTEX_SHADER
-  E_Shader* = object of E_Base
+  E_Shader* = object of Exception
   E_UnknownShaderType* = object of E_Shader
 
 converter pathToShaderType*(s: string): TShaderType =
diff --git a/tests/manyloc/named_argument_bug/tri_engine/gfx/tex.nim b/tests/manyloc/named_argument_bug/tri_engine/gfx/tex.nim
index e5043ae34..282a1ac99 100644
--- a/tests/manyloc/named_argument_bug/tri_engine/gfx/tex.nim
+++ b/tests/manyloc/named_argument_bug/tri_engine/gfx/tex.nim
@@ -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