Просмотр исходного кода

check flag instead of function call

leonsal 8 лет назад
Родитель
Сommit
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
 // checkError checks the error code of the previously called OpenGL function
 func (gls *GLS) checkError(fname string) {
 func (gls *GLS) checkError(fname string) {
 
 
-	if gls.CheckErrors() {
+	if gls.checkErrors {
 		ecode := gl.GetError()
 		ecode := gl.GetError()
 		if ecode != 0 {
 		if ecode != 0 {
 			log.Fatal("Error:%d calling:%s()", ecode, fname)
 			log.Fatal("Error:%d calling:%s()", ecode, fname)