Explorar o código

check flag instead of function call

leonsal %!s(int64=8) %!d(string=hai) anos
pai
achega
0f62f551c2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      gls/gls.go

+ 1 - 1
gls/gls.go

@@ -508,7 +508,7 @@ func (gs *GLS) Viewport(x, y, width, height int32) {
 // checkError checks the error code of the previously called OpenGL function
 func (gls *GLS) checkError(fname string) {
 
-	if gls.CheckErrors() {
+	if gls.checkErrors {
 		ecode := gl.GetError()
 		if ecode != 0 {
 			log.Fatal("Error:%d calling:%s()", ecode, fname)