Skip to content
This repository has been archived by the owner on Mar 14, 2018. It is now read-only.

Commit

Permalink
Fix major bug in OpenGL renderer's texture size, used NPOT textures i…
Browse files Browse the repository at this point in the history
…f your target resolution was over 1024x1024, it was supposed to check the actual game resolution instead
  • Loading branch information
hifi committed Oct 18, 2011
1 parent b9feb2d commit ac25cc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions render.c
Expand Up @@ -30,8 +30,8 @@ DWORD WINAPI render_main(void)
int i,j;
HGLRC hRC;

int tex_width = ddraw->render.width > 1024 ? ddraw->render.width : 1024;
int tex_height = ddraw->render.height > 1024 ? ddraw->render.height : 1024;
int tex_width = ddraw->width > 1024 ? ddraw->width : 1024;
int tex_height = ddraw->height > 1024 ? ddraw->height : 1024;
float scale_w = 1.0f;
float scale_h = 1.0f;
int *tex = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, tex_width * tex_height * sizeof(int));
Expand Down

0 comments on commit ac25cc5

Please sign in to comment.