mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-16 06:18:53 +01:00
Use npot textures if the surface size exceeds 1024x1024
This commit is contained in:
parent
740730d1fc
commit
a803c12995
4
render.c
4
render.c
@ -25,8 +25,8 @@ DWORD WINAPI render_main(void)
|
||||
int i,j;
|
||||
HGLRC hRC;
|
||||
|
||||
int tex_width = 1024;
|
||||
int tex_height = 1024;
|
||||
int tex_width = ddraw->render.width > 1024 ? ddraw->render.width : 1024;
|
||||
int tex_height = ddraw->render.height > 1024 ? ddraw->render.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