diff --git a/.github/workflows/linux-opengl.yml b/.github/workflows/linux-opengl.yml index 5fb32ea..c637bf6 100644 --- a/.github/workflows/linux-opengl.yml +++ b/.github/workflows/linux-opengl.yml @@ -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 diff --git a/openglscissor.patch b/openglscissor.patch new file mode 100644 index 0000000..82a54ca --- /dev/null +++ b/openglscissor.patch @@ -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); + } + } +