Fixed uninitialized texture id in opengl

This could cause an invalid operation error at texture binding
This commit is contained in:
Michaël Lemaire 2015-09-21 21:01:44 +02:00
parent 7658bf256f
commit ec69975146
2 changed files with 1 additions and 1 deletions

1
TODO
View file

@ -5,7 +5,6 @@ Technlology Preview 2 :
- Add clouds to OpenGL with 3d textures. - Add clouds to OpenGL with 3d textures.
- Fix potential holes in land rendering (OpenGL and software). - Fix potential holes in land rendering (OpenGL and software).
- Fix polygon culling near the camera in low-res renders (automatic tessellation ?). - Fix polygon culling near the camera in low-res renders (automatic tessellation ?).
- Fix OpenGL water renderer sometimes not initializing correctly (value error in OpenGL).
Technology Preview 3 : Technology Preview 3 :
- Alter aerial perspective using estimation of the amount of light left after cloud layers traversal. - Alter aerial perspective using estimation of the amount of light left after cloud layers traversal.

View file

@ -17,6 +17,7 @@ OpenGLVariable::OpenGLVariable(const std::string &name):
{ {
type = TYPE_NONE; type = TYPE_NONE;
texture_toupload = false; texture_toupload = false;
texture_id = 0;
} }
void OpenGLVariable::apply(OpenGLShaderProgram *program, int &texture_unit) void OpenGLVariable::apply(OpenGLShaderProgram *program, int &texture_unit)