Skip to content

Commit

Permalink
Re-add GL stuff in the renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
Deftu committed Oct 11, 2024
1 parent 722d3dc commit cb76c24
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ class RendererImpl(

queue.fastRemoveIfReversed { it(); true }
UGraphics.disableAlpha()
// if(!isGl3) {
// GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS)
// }
if (!isGl3) {
GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS)
}

nanoVg.beginFrame(width, height, pixelRatio)
isDrawing = true
Expand All @@ -144,9 +144,9 @@ class RendererImpl(
if (!isDrawing) throw IllegalStateException("Not drawing")

nanoVg.endFrame()
// if(!isGl3) {
// GL11.glPopAttrib()
// }
if (!isGl3) {
GL11.glPopAttrib()
}

isDrawing = false
}
Expand Down Expand Up @@ -239,7 +239,6 @@ class RendererImpl(
}

override fun initImage(image: PolyImage) {
println("Init image: $image")
getOrPopulateImage(image, 0f, 0f)
}

Expand Down

0 comments on commit cb76c24

Please sign in to comment.