ANDROID: Fix glClearColor call
This function takes floats between 0 and 1 and not integers
This commit is contained in:
parent
2847ba5bbe
commit
81fecf557c
1 changed files with 1 additions and 1 deletions
|
@ -966,7 +966,7 @@ void AndroidGraphics3dManager::clearScreen(FixupType type, byte count) {
|
||||||
|
|
||||||
for (byte i = 0; i < count; ++i) {
|
for (byte i = 0; i < count; ++i) {
|
||||||
// clear screen
|
// 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));
|
GLCALL(glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT));
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue