texture load fixes, shader changes

This commit is contained in:
milek7
2018-07-19 19:10:50 +02:00
parent a729c5fa1d
commit 4d198840dc
5 changed files with 20 additions and 29 deletions

View File

@@ -54,7 +54,7 @@ struct opengl_texture {
std::string traits; // requested texture attributes: wrapping modes etc
std::string name; // name of the texture source file
std::size_t size{ 0 }; // size of the texture data, in kb
GLint components_hint; // components that material wants
GLint components_hint = 0; // components that material wants
GLenum target = GL_TEXTURE_2D;
static std::array<GLuint, gl::MAX_TEXTURES + 2> units;