1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-14 00:54:05 +02:00

#15 fix alpha composing for WebGL

This commit is contained in:
XProger
2017-09-06 03:04:57 +03:00
parent a6aafee45b
commit 1c9d0b4199

View File

@@ -125,8 +125,8 @@
#endif #endif
#elif __EMSCRIPTEN__ #elif __EMSCRIPTEN__
#define MOBILE #define MOBILE
#include <emscripten.h> #include <emscripten/emscripten.h>
#include <html5.h> #include <emscripten/html5.h>
#include <GLES3/gl3.h> #include <GLES3/gl3.h>
#include <GLES3/gl2ext.h> #include <GLES3/gl2ext.h>
@@ -856,6 +856,12 @@ namespace Core {
void endFrame() { void endFrame() {
Core::stats.stop(); Core::stats.stop();
#ifdef __EMSCRIPTEN__
glColorMask(false, false, false, true);
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
glClear(GL_COLOR_BUFFER_BIT);
glColorMask(true, true, true, true);
#endif
} }
void DIP(int iStart, int iCount) { void DIP(int iStart, int iCount) {