Skip to content
Permalink
Browse files

Replace Swift.print with print

  • Loading branch information...
alejx committed Apr 3, 2019
1 parent dcc346f commit 5cf30107c07ca17ac698ce0539e223d6f8a17b36
Showing with 8 additions and 8 deletions.
  1. +8 −8 iina/ViewLayer.swift
@@ -205,30 +205,30 @@ class ViewLayer: CAOpenGLLayer {
/** Check OpenGL error (for debug only). */
func gle() {
let e = glGetError()
Swift.print(arc4random())
print(arc4random())
switch e {
case GLenum(GL_NO_ERROR):
break
case GLenum(GL_OUT_OF_MEMORY):
Swift.print("GL_OUT_OF_MEMORY")
print("GL_OUT_OF_MEMORY")
break
case GLenum(GL_INVALID_ENUM):
Swift.print("GL_INVALID_ENUM")
print("GL_INVALID_ENUM")
break
case GLenum(GL_INVALID_VALUE):
Swift.print("GL_INVALID_VALUE")
print("GL_INVALID_VALUE")
break
case GLenum(GL_INVALID_OPERATION):
Swift.print("GL_INVALID_OPERATION")
print("GL_INVALID_OPERATION")
break
case GLenum(GL_INVALID_FRAMEBUFFER_OPERATION):
Swift.print("GL_INVALID_FRAMEBUFFER_OPERATION")
print("GL_INVALID_FRAMEBUFFER_OPERATION")
break
case GLenum(GL_STACK_UNDERFLOW):
Swift.print("GL_STACK_UNDERFLOW")
print("GL_STACK_UNDERFLOW")
break
case GLenum(GL_STACK_OVERFLOW):
Swift.print("GL_STACK_OVERFLOW")
print("GL_STACK_OVERFLOW")
break
default:
break

0 comments on commit 5cf3010

Please sign in to comment.
You can’t perform that action at this time.