Update emscripten version

This commit is contained in:
Vladislav Khorev committed 2026-11-09 15:36:42 +06:00
1 parent ea8f64c940
commit 2a7498695a
18 files changed
+76 -66

No files matched your search

+6 -6
View File
@@ -1,4 +1,4 @@
#include "render/Renderer.h"
#include "render/Renderer.h"
#include <cmath>
namespace FRG {
@@ -116,7 +116,7 @@ namespace FRG {
VAOHolder::VAOHolder()
{
#ifndef EMSCRIPTEN
#ifndef __EMSCRIPTEN__
#ifndef ANDROID
glGenVertexArrays(1, &vao);
#endif
@@ -125,7 +125,7 @@ namespace FRG {
VAOHolder::~VAOHolder()
{
#ifndef EMSCRIPTEN
#ifndef __EMSCRIPTEN__
#ifndef ANDROID
#ifdef __linux__
glDeleteVertexArrays(1, &vao);
@@ -382,7 +382,7 @@ namespace FRG {
{
//Check if main thread, check if data is not empty...
#ifndef EMSCRIPTEN
#ifndef __EMSCRIPTEN__
#ifndef __ANDROID__
if (!vao)
{
@@ -528,7 +528,7 @@ namespace FRG {
glActiveTexture(GL_TEXTURE0);
#ifndef EMSCRIPTEN
#ifndef __EMSCRIPTEN__
#ifndef __ANDROID__
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
#endif
@@ -922,7 +922,7 @@ namespace FRG {
void Renderer::DrawVertexRenderStruct(const VertexRenderStruct& VertexRenderStruct)
{
#ifndef EMSCRIPTEN
#ifndef __EMSCRIPTEN__
#ifndef __ANDROID__
if (VertexRenderStruct.vao) {
glBindVertexArray(VertexRenderStruct.vao->getBuffer());