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:
10
src/core.h
10
src/core.h
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user