16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 01:19:18 +02:00

make vao mode selectable at runtime (enabled by default, disabled by multiviewports)

This commit is contained in:
milek7
2019-08-08 15:48:55 +02:00
parent 37fea6db7a
commit 613bdb91d9
4 changed files with 52 additions and 41 deletions

View File

@@ -21,6 +21,7 @@ http://mozilla.org/MPL/2.0/.
#include "Console.h"
#include "PyInt.h"
#include "Timer.h"
#include "vao.h"
global_settings Global;
@@ -855,6 +856,10 @@ global_settings::ConfigParse(cParser &Parser) {
Parser >> conf.transform[i / 4][i % 4];
extra_viewports.push_back(conf);
if (gl::vao::use_vao) {
gl::vao::use_vao = false;
WriteLog("using multiple viewports, disabling vao!");
}
}
} while ((token != "") && (token != "endconfig")); //(!Parser->EndOfFile)
// na koniec trochę zależności