Improved Binding of textures

This commit is contained in:
Robert 2021-01-21 16:27:41 +01:00
parent 8174ebaee4
commit f1f076acf4
5 changed files with 27 additions and 4 deletions

View file

@ -86,10 +86,8 @@ int main(int argc, char** argv)
oglu::ClearScreen(GL_COLOR_BUFFER_BIT, oglu::Color(0.29f, 0.13f, 0.23f));
oglu::ActiveTexture(0);
crate->Bind();
oglu::ActiveTexture(1);
opengl->Bind();
crate->BindAs(0);
opengl->BindAs(1);
shader->Use();
shader->SetUniform("texture1", 0);