mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-13 16:44:50 +02:00
#15 fix alpha composing for WebGL
This commit is contained in:
10
src/core.h
10
src/core.h
@@ -125,8 +125,8 @@
|
||||
#endif
|
||||
#elif __EMSCRIPTEN__
|
||||
#define MOBILE
|
||||
#include <emscripten.h>
|
||||
#include <html5.h>
|
||||
#include <emscripten/emscripten.h>
|
||||
#include <emscripten/html5.h>
|
||||
#include <GLES3/gl3.h>
|
||||
#include <GLES3/gl2ext.h>
|
||||
|
||||
@@ -856,6 +856,12 @@ namespace Core {
|
||||
|
||||
void endFrame() {
|
||||
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) {
|
||||
|
Reference in New Issue
Block a user