[orx-syphon] Upgraded use of ColorBufferGL3 to new interface

This commit is contained in:
Edwin Jakobs
2020-07-13 12:08:04 +02:00
parent 62f6cd6098
commit 3a6e787a46

View File

@@ -8,6 +8,7 @@ import org.openrndr.Program
import org.openrndr.draw.* import org.openrndr.draw.*
import org.openrndr.internal.gl3.ColorBufferGL3 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 { 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 * 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 * Only create a new buffer if it's size changed