mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-06 15:25:39 +00:00
Fix clearcolors
This commit is contained in:
parent
20da03973f
commit
b6f0f5c2c7
|
@ -111,7 +111,7 @@ namespace Renderer
|
||||||
uint8_t data[4] = {255, 255, 255, 255};
|
uint8_t data[4] = {255, 255, 255, 255};
|
||||||
whiteTexture = createTexture(Texture::RGBA, false, true, 1, 1, data);
|
whiteTexture = createTexture(Texture::RGBA, false, true, 1, 1, data);
|
||||||
|
|
||||||
GL_CHECK_ERROR(glClearColor(1.0f, 1.0f, 1.0f, 1.0f));
|
GL_CHECK_ERROR(glClearColor(0.0f, 0.0f, 0.0f, 1.0f));
|
||||||
GL_CHECK_ERROR(glEnable(GL_TEXTURE_2D));
|
GL_CHECK_ERROR(glEnable(GL_TEXTURE_2D));
|
||||||
GL_CHECK_ERROR(glEnable(GL_BLEND));
|
GL_CHECK_ERROR(glEnable(GL_BLEND));
|
||||||
GL_CHECK_ERROR(glPixelStorei(GL_PACK_ALIGNMENT, 1));
|
GL_CHECK_ERROR(glPixelStorei(GL_PACK_ALIGNMENT, 1));
|
||||||
|
|
|
@ -111,7 +111,7 @@ namespace Renderer
|
||||||
uint8_t data[4] = {255, 255, 255, 255};
|
uint8_t data[4] = {255, 255, 255, 255};
|
||||||
whiteTexture = createTexture(Texture::RGBA, false, true, 1, 1, data);
|
whiteTexture = createTexture(Texture::RGBA, false, true, 1, 1, data);
|
||||||
|
|
||||||
GL_CHECK_ERROR(glClearColor(1.0f, 1.0f, 1.0f, 1.0f));
|
GL_CHECK_ERROR(glClearColor(0.0f, 0.0f, 0.0f, 1.0f));
|
||||||
GL_CHECK_ERROR(glEnable(GL_TEXTURE_2D));
|
GL_CHECK_ERROR(glEnable(GL_TEXTURE_2D));
|
||||||
GL_CHECK_ERROR(glEnable(GL_BLEND));
|
GL_CHECK_ERROR(glEnable(GL_BLEND));
|
||||||
GL_CHECK_ERROR(glPixelStorei(GL_PACK_ALIGNMENT, 1));
|
GL_CHECK_ERROR(glPixelStorei(GL_PACK_ALIGNMENT, 1));
|
||||||
|
|
Loading…
Reference in a new issue