From 20f95c5f3b1f857044e17ca00b50d43e1f7aeaf4 Mon Sep 17 00:00:00 2001 From: VB Date: Tue, 14 Feb 2017 19:47:58 +0100 Subject: [PATCH] fix --- Ground.cpp | 2 +- Texture.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Ground.cpp b/Ground.cpp index d0e6efcc..05d0c7b6f 100644 --- a/Ground.cpp +++ b/Ground.cpp @@ -938,7 +938,7 @@ void TSubRect::Sort() */ //... // przeglądanie listy i tworzenie obiektów renderujących dla danej tekstury - GLuint t = 0; // pomocniczy kod tekstury + int t = 0; // pomocniczy kod tekstury n1 = nMeshed; // lista obiektów przetwarzanych na statyczne siatki while (n1) { // dla każdej tekstury powinny istnieć co najmniej dwa obiekty, ale dla DL nie ma to znaczenia diff --git a/Texture.h b/Texture.h index fd0a2fe9..6d0e5b32 100644 --- a/Texture.h +++ b/Texture.h @@ -25,7 +25,7 @@ struct opengl_texture { void load(); void create(); // members - GLuint id{ -1 }; // associated GL resource + GLuint id{ (GLuint)-1 }; // associated GL resource bool has_alpha{ false }; // indicates the texture has alpha channel bool is_ready{ false }; // indicates the texture was processed and is ready for use std::string traits; // requested texture attributes: wrapping modes etc