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

fix web build

add favicon
This commit is contained in:
XProger
2020-02-19 06:17:55 +03:00
parent 5803810069
commit 96b34590ef
3 changed files with 3 additions and 2 deletions

View File

@@ -772,7 +772,7 @@ namespace GAPI {
gfxInitDefault();
vramAlloc(0);
vramFree(vramAlloc(0)); // vramInit()
VRAM_TOTAL = vramSpaceFree();
consoleInit(GFX_BOTTOM, NULL);

View File

@@ -1488,7 +1488,7 @@ namespace GAPI {
if (count) {
#ifdef _OS_ANDROID
glInvalidateFramebuffer(GL_FRAMEBUFFER, count, discard);
#elif !defined(__SDL2__)
#elif !defined(__SDL2__) && !defined(_OS_WEB)
/* SDL2 typically uses MESA which does not have glDiscardFramebufferEXT() implemented
for some drivers, like Gallium VC4. */
glDiscardFramebufferEXT(GL_FRAMEBUFFER, count, discard);

View File

@@ -2,6 +2,7 @@
<html>
<head>
<title>OpenLara</title>
<link href="/projects/OpenLara/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<style>
html {
overflow: hidden;