File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/dev/silenium/compose/gl/surface Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ class GLSurface internal constructor(
197197 private val cleanupBlock : () -> Unit = {},
198198 private val presentMode : PresentMode = PresentMode .MAILBOX ,
199199 private val swapChainSize : Int = 10 ,
200- internal var fboSizeOverride : FBOSizeOverride ? = null ,
200+ fboSizeOverride : FBOSizeOverride ? = null ,
201201) : Thread(" GLSurfaceView-${index.getAndIncrement()} " ) {
202202 enum class PresentMode (internal val impl : (Int , (IntSize ) -> FBO ) -> FBOSwapChain ) {
203203 /* *
@@ -213,12 +213,12 @@ class GLSurface internal constructor(
213213 */
214214 FIFO (::FBOFifoSwapChain ),
215215 }
216-
217216 private var directContext: DirectContext ? = null
218217 private var renderContext: GLContext <* >? = null
219218 private var size: IntSize = IntSize .Zero
220219 private var fboPool: FBOPool ? = null
221220 internal var invalidations by mutableStateOf(0L )
221+ internal var fboSizeOverride: FBOSizeOverride ? by mutableStateOf(fboSizeOverride)
222222
223223 internal fun launch () {
224224 GL .createCapabilities()
You can’t perform that action at this time.
0 commit comments