Skip to content

Commit

Permalink
George Shakula saves the day! https://github.com/hshakula
Browse files Browse the repository at this point in the history
fix dimensionless texture
  • Loading branch information
jakedowns committed Jan 22, 2024
1 parent b7686ca commit 5416300
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class LeiaSurfaceView(context: Context, attrs: AttributeSet) : InterlacedSurface
fun setSurfaceListener(surfaceListener: LeiaHelper3D.SurfaceListener) {
val surfaceAsset = InputViewsAsset.createEmptySurfaceForVideo {
surfaceTexture: SurfaceTexture? ->
surfaceTexture?.setDefaultBufferSize(2560, 1600)
Log.d("SurfaceListener", "createEmptySurfaceForVideo -> calling onSurfaceChanged")
surfaceListener.onSurfaceChanged(Surface(surfaceTexture))
}
Expand Down

0 comments on commit 5416300

Please sign in to comment.