about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/engine/client/ec_gfx.c3
-rw-r--r--src/engine/e_config_variables.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/src/engine/client/ec_gfx.c b/src/engine/client/ec_gfx.c
index 516e68a3..18b17a74 100644
--- a/src/engine/client/ec_gfx.c
+++ b/src/engine/client/ec_gfx.c
@@ -650,6 +650,9 @@ void gfx_swap()
 		glfwSwapBuffers();
 		perf_end();
 	}
+	
+	if(config.gfx_finish)
+		glFinish();
 
 	/*	
 	if(inp_key_pressed('P'))
diff --git a/src/engine/e_config_variables.h b/src/engine/e_config_variables.h
index 5e355492..3683fc85 100644
--- a/src/engine/e_config_variables.h
+++ b/src/engine/e_config_variables.h
@@ -43,6 +43,8 @@ MACRO_CONFIG_INT(gfx_texture_quality, 1, 0, 1)
 MACRO_CONFIG_INT(gfx_fsaa_samples, 0, 0, 16)
 MACRO_CONFIG_INT(gfx_refresh_rate, 0, 0, 0)
 MACRO_CONFIG_INT(gfx_debug_resizable, 0, 0, 0)
+MACRO_CONFIG_INT(gfx_finish, 1, 0, 1)
+
 
 MACRO_CONFIG_INT(inp_mousesens, 100, 5, 100000)