ANDROID: Fix glClearColor call

This function takes floats between 0 and 1 and not integers
This commit is contained in:
Le Philousophe 2023-06-01 21:31:42 +02:00
parent 2847ba5bbe
commit 81fecf557c

View file

@ -966,7 +966,7 @@ void AndroidGraphics3dManager::clearScreen(FixupType type, byte count) {
for (byte i = 0; i < count; ++i) {
// clear screen
GLCALL(glClearColor(0, 0, 0, 1 << 16));
GLCALL(glClearColor(0.f, 0.f, 0.f, 1.f));
GLCALL(glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT));
switch (type) {