1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

Revert "tetris: part 1 of fixing building it with v2"

This reverts commit d42725aafe.
This commit is contained in:
Delyan Angelov
2020-04-16 01:16:54 +03:00
parent d42725aafe
commit 4b3c44cfd7
4 changed files with 22 additions and 29 deletions

View File

@@ -11,8 +11,6 @@ module gl
// joe-c: fix & remove
pub enum TmpGlImportHack{ non_empty }
fn C.gladLoadGL() int
fn C.glDisable()
fn C.glEnable()
fn C.glScissor()
@@ -46,6 +44,7 @@ fn C.glClear()
fn C.glCreateShader() int
fn C.glClearColor()
fn C.glViewport()
fn C.gladLoadGL()
fn C.glTexImage2D()
fn C.glPixelStorei()
fn C.glBlendFunc()
@@ -53,9 +52,10 @@ fn C.glPolygonMode()
fn C.glDeleteBuffers()
pub fn init_glad() {
ok := C.gladLoadGL()
if ok == 0 {
if isnil(ok) {
println('Failed to initialize glad OpenGL context')
exit(1)
}