emscripten build fixes
This commit is contained in:
parent
f2ccdff499
commit
7ebca63db3
1 changed files with 2 additions and 2 deletions
|
|
@ -229,7 +229,7 @@ void Billboard::render(unsigned int shader, const mat4& view, const mat4& projec
|
|||
// Bind texture using PyTexture's underlying sf::Texture
|
||||
const sf::Texture* sfTexture = texture_->getSFMLTexture();
|
||||
if (sfTexture) {
|
||||
sf::Texture::bind(sfTexture);
|
||||
glBindTexture(GL_TEXTURE_2D, sfTexture->getNativeHandle());
|
||||
|
||||
// Use PyTexture's sprite sheet configuration
|
||||
int sheetW = texture_->sprite_width > 0 ? texture_->sprite_width : 1;
|
||||
|
|
@ -294,7 +294,7 @@ void Billboard::render(unsigned int shader, const mat4& view, const mat4& projec
|
|||
|
||||
// Unbind texture
|
||||
if (hasTexture) {
|
||||
sf::Texture::bind(nullptr);
|
||||
glBindTexture(GL_TEXTURE_2D, 0);
|
||||
}
|
||||
|
||||
// Reset UV uniforms
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue