mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-25 01:57:47 +01:00
reduce delay for new zoom feature
This commit is contained in:
parent
3a579e36cc
commit
8b4f94dcd8
@ -540,7 +540,7 @@ static BOOL d3d9_update_vertices(BOOL upscale_hack, BOOL stretch)
|
|||||||
|
|
||||||
DWORD WINAPI d3d9_render_main(void)
|
DWORD WINAPI d3d9_render_main(void)
|
||||||
{
|
{
|
||||||
Sleep(250);
|
//Sleep(250);
|
||||||
|
|
||||||
fpsl_init();
|
fpsl_init();
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ BOOL ogl_create()
|
|||||||
|
|
||||||
DWORD WINAPI ogl_render_main(void)
|
DWORD WINAPI ogl_render_main(void)
|
||||||
{
|
{
|
||||||
Sleep(250);
|
//Sleep(250);
|
||||||
g_ogl.got_error = g_ogl.use_opengl = FALSE;
|
g_ogl.got_error = g_ogl.use_opengl = FALSE;
|
||||||
GLenum err = GL_NO_ERROR;
|
GLenum err = GL_NO_ERROR;
|
||||||
BOOL made_current = FALSE;
|
BOOL made_current = FALSE;
|
||||||
@ -91,8 +91,8 @@ DWORD WINAPI ogl_render_main(void)
|
|||||||
GL_CHECK(ogl_init_shader1_program());
|
GL_CHECK(ogl_init_shader1_program());
|
||||||
GL_CHECK(ogl_init_shader2_program());
|
GL_CHECK(ogl_init_shader2_program());
|
||||||
|
|
||||||
GL_CHECK(g_ogl.got_error = g_ogl.got_error || !ogl_texture_upload_test());
|
//GL_CHECK(g_ogl.got_error = g_ogl.got_error || !ogl_texture_upload_test());
|
||||||
GL_CHECK(g_ogl.got_error = g_ogl.got_error || !ogl_shader_test());
|
//GL_CHECK(g_ogl.got_error = g_ogl.got_error || !ogl_shader_test());
|
||||||
g_ogl.got_error = g_ogl.got_error || (err = glGetError()) != GL_NO_ERROR;
|
g_ogl.got_error = g_ogl.got_error || (err = glGetError()) != GL_NO_ERROR;
|
||||||
g_ogl.use_opengl = (g_ogl.main_program || g_ddraw.bpp == 16 || g_ddraw.bpp == 32) && !g_ogl.got_error;
|
g_ogl.use_opengl = (g_ogl.main_program || g_ddraw.bpp == 16 || g_ddraw.bpp == 32) && !g_ogl.got_error;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user