1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-05-13 01:52:05 +00:00

solv:: CAP_SOLV

This commit is contained in:
Zeno Rogue
2019-09-13 17:45:31 +02:00
parent a4579e95c1
commit 2a950369ba
5 changed files with 29 additions and 6 deletions
+3 -1
View File
@@ -324,13 +324,14 @@ void display_data::set_projection(int ed) {
start_projection(ed, shaderside_projection);
if(pmodel == mdRug) return;
#if CAP_SOLV
if(glhr::new_shader_projection == glhr::shader_projection::standardSolv) {
static bool toload = true;
static GLuint invexpid = 0;
if(toload) { // if(!has_table.count(_program)) {
if(toload) {
solv::load_table();
if(!solv::table_loaded) { pmodel = mdPerspective; set_projection(ed); return; }
@@ -375,6 +376,7 @@ void display_data::set_projection(int ed) {
glhr::set_solv_prec(solv::PRECX, solv::PRECY, solv::PRECZ);
}
#endif
if(glhr::new_shader_projection == glhr::shader_projection::standardSL2) {
glhr::set_index_sl(0);