Skip to content

Commit

Permalink
add temporary patch
Browse files Browse the repository at this point in the history
  • Loading branch information
tcdude committed Aug 3, 2024
1 parent 4e6d28f commit a0c10e3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/linux-opengl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
run: sudo apt install imagemagick xvfb
- name: Get Submodules
run: ./get_dlc
- name: Temporary OpenGL scissor patch
run: git -C krink/Kinc apply openglscissor.patch
- name: Compile
run: ./krink/Kinc/make -g opengl --compile
- name: Run Test 1
Expand Down
13 changes: 13 additions & 0 deletions openglscissor.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/Backends/Graphics4/OpenGL/Sources/kinc/backend/graphics4/OpenGL.c.h b/Backends/Graphics4/OpenGL/Sources/kinc/backend/graphics4/OpenGL.c.h
index 4c492e93..2b461dfc 100644
--- a/Backends/Graphics4/OpenGL/Sources/kinc/backend/graphics4/OpenGL.c.h
+++ b/Backends/Graphics4/OpenGL/Sources/kinc/backend/graphics4/OpenGL.c.h
@@ -724,7 +724,7 @@ void kinc_g4_scissor(int x, int y, int width, int height) {
glScissor(x, _renderTargetHeight - y - height, width, height);
}
else {
- glScissor(x, y, width, height);
+ glScissor(x, _renderTargetHeight - y - height, width, height);
}
}

0 comments on commit a0c10e3

Please sign in to comment.