瀏覽代碼

check flag instead of function call

leonsal 8 年之前
父節點
當前提交
0f62f551c2
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)