Skip to content

Commit

Permalink
Correctly centers screen with OpenGL
Browse files Browse the repository at this point in the history
  • Loading branch information
Waterdish committed Aug 22, 2023
1 parent 3116ce9 commit fca7948
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
2 changes: 1 addition & 1 deletion app/jni/src/src/opengl.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ static void OpenGLRenderer_EndDraw() {
}

int viewport_x = (drawable_width - viewport_width) >> 1;
int viewport_y = (viewport_height - viewport_height) >> 1;
int viewport_y = (drawable_height - viewport_height) >> 1;

glBindTexture(GL_TEXTURE_2D, g_texture.gl_texture);
if (g_draw_width == g_texture.width && g_draw_height == g_texture.height) {
Expand Down
20 changes: 0 additions & 20 deletions app/release/output-metadata.json

This file was deleted.

0 comments on commit fca7948

Please sign in to comment.