mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 06:57:37 +02:00
Merge pull request #5917 from jherico/lisa
Fix for bad textures when using _glActiveBindTexture
This commit is contained in:
commit
e032ed4811
1 changed files with 2 additions and 0 deletions
|
@ -418,6 +418,8 @@ void GLBackend::resetStages() {
|
||||||
#define DO_IT_NOW(call, offset)
|
#define DO_IT_NOW(call, offset)
|
||||||
|
|
||||||
void Batch::_glActiveBindTexture(GLenum unit, GLenum target, GLuint texture) {
|
void Batch::_glActiveBindTexture(GLenum unit, GLenum target, GLuint texture) {
|
||||||
|
setResourceTexture(unit - GL_TEXTURE0, nullptr);
|
||||||
|
|
||||||
ADD_COMMAND_GL(glActiveBindTexture);
|
ADD_COMMAND_GL(glActiveBindTexture);
|
||||||
|
|
||||||
_params.push_back(texture);
|
_params.push_back(texture);
|
||||||
|
|
Loading…
Reference in a new issue