1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 08:49:37 +00:00

Sets a clear colour appropriate for phase-linked luminance clearing.

This commit is contained in:
Thomas Harte 2019-02-03 22:33:04 -05:00
parent e5f75b5df2
commit 6ba1194d74

View File

@ -83,6 +83,7 @@ ScanTarget::ScanTarget(GLuint target_framebuffer, float output_gamma) :
// write straight into it. // write straight into it.
glGenTextures(1, &write_area_texture_name_); glGenTextures(1, &write_area_texture_name_);
glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
glBlendFunc(GL_SRC_ALPHA, GL_CONSTANT_COLOR); glBlendFunc(GL_SRC_ALPHA, GL_CONSTANT_COLOR);
glBlendColor(0.4f, 0.4f, 0.4f, 1.0f); glBlendColor(0.4f, 0.4f, 0.4f, 1.0f);