Skip to content

Commit 9df85e8

Browse files
committed
simplified 2d render
1 parent 50ae0e0 commit 9df85e8

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/main/kotlin/com/lambda/gui/DearImGui.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ object DearImGui : Loadable {
9090
)
9191

9292
GlStateManager._glBindFramebuffer(GL_FRAMEBUFFER, prevFramebuffer)
93-
glViewport(0, 0, framebuffer.textureWidth, framebuffer.textureHeight)
9493

9594
implGlfw.newFrame()
9695
implGl3.newFrame()
@@ -103,8 +102,6 @@ object DearImGui : Loadable {
103102
GuiEvent.EndFrame.post()
104103

105104
implGl3.renderDrawData(ImGui.getDrawData())
106-
107-
GlStateManager._glBindFramebuffer(GL_FRAMEBUFFER, prevFramebuffer)
108105
}
109106

110107
fun destroy() {

src/main/kotlin/com/lambda/module/hud/Watermark.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ package com.lambda.module.hud
1919

2020
import com.lambda.graphics.texture.TextureOwner.upload
2121
import com.lambda.gui.Layout
22-
import com.lambda.gui.dsl.ImGuiBuilder
2322
import com.lambda.module.HudModule
2423
import com.lambda.module.tag.ModuleTag
2524

0 commit comments

Comments
 (0)