From 3a6e787a46dc5ce32d05947578266f967b453fb0 Mon Sep 17 00:00:00 2001 From: Edwin Jakobs Date: Mon, 13 Jul 2020 12:08:04 +0200 Subject: [PATCH] [orx-syphon] Upgraded use of ColorBufferGL3 to new interface --- orx-syphon/src/main/kotlin/SyphonClient.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/orx-syphon/src/main/kotlin/SyphonClient.kt b/orx-syphon/src/main/kotlin/SyphonClient.kt index 4be4c9d9..56109af0 100644 --- a/orx-syphon/src/main/kotlin/SyphonClient.kt +++ b/orx-syphon/src/main/kotlin/SyphonClient.kt @@ -8,6 +8,7 @@ import org.openrndr.Program import org.openrndr.draw.* import org.openrndr.internal.gl3.ColorBufferGL3 +import org.openrndr.internal.gl3.TextureStorageModeGL class SyphonClient(private val appName: String? = null, private val serverName: String? = null): Extension { @@ -36,7 +37,7 @@ class SyphonClient(private val appName: String? = null, private val serverName: /** * GL_TEXTURE_RECTANGLE is necessary */ - val rectBuffer = ColorBufferGL3(GL_TEXTURE_RECTANGLE, name, w, h, 1.0, ColorFormat.RGBa, ColorType.UINT8, 0, BufferMultisample.Disabled, Session.root) + val rectBuffer = ColorBufferGL3(GL_TEXTURE_RECTANGLE, name, TextureStorageModeGL.IMAGE, w, h, 1.0, ColorFormat.RGBa, ColorType.UINT8, 0, BufferMultisample.Disabled, Session.root) /** * Only create a new buffer if it's size changed