16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 15:09:19 +02:00

build 180928. heater sound, minor precipitation tweaks, minor bug fixes

This commit is contained in:
tmj-fstate
2018-09-28 19:18:24 +02:00
parent 7c60829f54
commit 226ddb6291
8 changed files with 42 additions and 18 deletions

View File

@@ -9,6 +9,8 @@ http://mozilla.org/MPL/2.0/.
#pragma once
#include "globals.h"
// encapsulation of the fixed pipeline opengl color
class opengl_color {
@@ -32,7 +34,7 @@ public:
inline
void
color4( glm::vec4 const &Color ) {
if( Color != m_color ) {
if( ( Color != m_color ) || ( false == Global.bUseVBO ) ) {
m_color = Color;
::glColor4fv( glm::value_ptr( m_color ) ); } }
inline