diff --git a/examples/tetris/tetris.v b/examples/tetris/tetris.v index 8f3ba73f79..1b1366953d 100644 --- a/examples/tetris/tetris.v +++ b/examples/tetris/tetris.v @@ -141,7 +141,7 @@ fn main() { use_ortho: true // This is needed for 2D drawing create_window: true window_title: 'V Tetris' - window_user_ptr: game + //window_user_ptr: game }) ft: freetype.new_context(gg.Cfg{ width: WinWidth diff --git a/vlib/gl/gl.v b/vlib/gl/gl.v index 22da632379..0dd3267e19 100644 --- a/vlib/gl/gl.v +++ b/vlib/gl/gl.v @@ -39,9 +39,9 @@ fn C.glAttachShader() fn C.glGetShaderiv() fn C.glCompileShader() fn C.glShaderSource() -fn C.glCreateProgram() +fn C.glCreateProgram() int fn C.glClear() -fn C.glCreateShader() +fn C.glCreateShader() int fn C.glClearColor() fn C.glViewport() fn C.gladLoadGL() diff --git a/vlib/glfw/glfw.v b/vlib/glfw/glfw.v index 7def0c39b3..a4165a15f0 100644 --- a/vlib/glfw/glfw.v +++ b/vlib/glfw/glfw.v @@ -69,7 +69,7 @@ fn C.glfwSetWindowSizeCallback() fn C.glfwSetMouseButtonCallback() fn C.glfwSetCursorPosCallback() fn C.glfwSwapBuffers() -fn C.glfwWindowShouldClose() +fn C.glfwWindowShouldClose() bool fn C.glfwSetWindowShouldClose() fn C.glfwWaitEvents() fn C.glfwPollEvents()