diff --git a/basegraph.cpp b/basegraph.cpp index d6fc5a40..edd426bd 100644 --- a/basegraph.cpp +++ b/basegraph.cpp @@ -358,7 +358,12 @@ void display_data::set_projection(int ed) { } println(hlog, "maxd = ", maxd); + #if !ISWEB glTexImage3D(GL_TEXTURE_3D, 0, 34836 /*GL_RGBA32F*/, PRECX, PRECX, PRECZ, 0, GL_RGBA, GL_FLOAT, xbuffer); + #else + // glTexStorage3D(GL_TEXTURE_3D, 1, 34836 /*GL_RGBA32F*/, PRECX, PRECX, PRECZ); + // glTexSubImage3D(GL_TEXTURE_3D, 0, 0, 0, 0, PRECX, PRECY, PRECZ, GL_RGBA, GL_FLOAT, xbuffer); + #endif delete[] xbuffer; } diff --git a/hyperweb.cpp b/hyperweb.cpp index 0e940a71..194cc6fe 100644 --- a/hyperweb.cpp +++ b/hyperweb.cpp @@ -48,7 +48,7 @@ namespace hr { const char *wheresounds; } -#include "hyper.h" +#include "hyper.cpp" namespace hr { diff --git a/nonisotropic.cpp b/nonisotropic.cpp index 44a18cd2..0a52785d 100644 --- a/nonisotropic.cpp +++ b/nonisotropic.cpp @@ -1076,7 +1076,11 @@ EX namespace slr { " float mina = 0.;" " float maxa = PI/4.;" " lo_gphi = 0.; lo_s = r; lo_alpha = 0.;" +#if ISWEB + " for(int it=0; it<50; it++) { if(it >= uIterations) break; " +#else " for(int it=0; it= uIterations) break; " +#else " for(int it=0; it bound * cos(alpha)) { next_nan = 1; maxa = alpha; continue; }" @@ -1101,7 +1109,11 @@ EX namespace slr { " }" " if(next_nan != 0) {" " mina = PI/4.; " +#if ISWEB + " for(int it=0; it<50; it++) { if(it >= uIterations) break; " +#else " for(int it=0; it