Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package gg.essential.universal.render

import org.lwjgl.opengl.GL11
import java.nio.ByteBuffer
import java.nio.ByteOrder

//#if MC==12105
//$$ import com.mojang.blaze3d.systems.RenderSystem
Expand Down Expand Up @@ -54,7 +55,7 @@ internal data class ScissorState(val enabled: Boolean, val x: Int, val y: Int, v
//#endif

// Note: LWJGL2 requires a buffer of 16 elements, even if the property we query only has 4
private val tmpIntBuffer = ByteBuffer.allocateDirect(16 * Int.SIZE_BYTES).asIntBuffer()
private val tmpIntBuffer = ByteBuffer.allocateDirect(16 * Int.SIZE_BYTES).order(ByteOrder.nativeOrder()).asIntBuffer()

fun active(): ScissorState {
//#if MC>=12106 && !STANDALONE
Expand Down
Loading