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

uniform mvp optimizations

This commit is contained in:
VB
2017-03-20 17:51:40 +01:00
parent 4d19e49398
commit b92a1e58ae
7 changed files with 137 additions and 145 deletions

View File

@@ -741,7 +741,7 @@ texture_manager::GetTextureId( std::string Filename, std::string const &Dir, int
void
texture_manager::Bind( texture_manager::size_type const Id ) {
/*
// NOTE: this optimization disabled for the time being, until the render code is reviewed
// having it active would lead to some terrain and spline chunks receiving wrong
// (the most recent?) texture, instead of the proper one. It'd also affect negatively
@@ -750,7 +750,7 @@ texture_manager::Bind( texture_manager::size_type const Id ) {
// don't bind again what's already active
return;
}
*/
// TODO: do binding in texture object, add support for other types
if( Id != 0 ) {