1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-13 12:17:10 +00:00

fixed some issues with commandline arguments (svg shots made correctly from cli)

This commit is contained in:
Zeno Rogue
2019-01-24 14:48:53 +01:00
parent 40aea82374
commit 8ac1cf8731
5 changed files with 18 additions and 5 deletions

View File

@@ -305,6 +305,7 @@ bool operator != (const glmatrix& m1, const glmatrix& m2) {
}
void set_modelview(const glmatrix& modelview) {
if(!current) return;
if(current_shader_projection != shader_projection::standard) {
if(modelview != current_modelview) {
current_modelview = modelview;
@@ -328,6 +329,7 @@ void set_modelview(const glmatrix& modelview) {
}
void id_modelview() {
if(!current) return;
if(current_shader_projection != shader_projection::standard) { set_modelview(id); return; }
#if MINIMIZE_GL_CALLS
if(projection == current_matrix) return;
@@ -344,6 +346,7 @@ void color2(color_t color, ld part) {
for(int i=0; i<4; i++) cols[i] = c[3-i] / 255.0 * part;
#if CAP_SHADER
// glUniform4fv(current->uFog, 4, cols);
if(!current) return;
glUniform4f(current->uColor, cols[0], cols[1], cols[2], cols[3]);
#else
glColor4f(cols[0], cols[1], cols[2], cols[3]);