mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 06:04:49 +01:00
Fix major bug in OpenGL renderer's texture size, used NPOT textures if your target resolution was over 1024x1024, it was supposed to check the actual game resolution instead
This commit is contained in:
parent
b9feb2df1a
commit
ac25cc5942
4
render.c
4
render.c
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user