Skip to content

Commit

Permalink
update opengl context fun
Browse files Browse the repository at this point in the history
  • Loading branch information
mi-sts committed Jan 9, 2024
1 parent 39a9fdc commit 460e4e5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import com.huskerdev.openglfx.lwjgl.LWJGLExecutor
import org.lwjgl.opengl.GL.createCapabilities
import com.huskerdev.openglfx.OpenGLCanvas as OpenGLFXCanvas

internal inline fun runInOpenGLContext(crossinline action: () -> Unit) {
internal fun runInOpenGLContext(action: () -> Unit) {
val openGLCanvas = OpenGLFXCanvas.create(LWJGLExecutor.LWJGL_MODULE)
openGLCanvas.addOnInitEvent {
createCapabilities()
Expand Down

0 comments on commit 460e4e5

Please sign in to comment.