emscripten build fixes

This commit is contained in:
John McCardle 2026-02-05 00:29:40 -05:00
commit 7ebca63db3

View file

@ -229,7 +229,7 @@ void Billboard::render(unsigned int shader, const mat4& view, const mat4& projec
// Bind texture using PyTexture's underlying sf::Texture // Bind texture using PyTexture's underlying sf::Texture
const sf::Texture* sfTexture = texture_->getSFMLTexture(); const sf::Texture* sfTexture = texture_->getSFMLTexture();
if (sfTexture) { if (sfTexture) {
sf::Texture::bind(sfTexture); glBindTexture(GL_TEXTURE_2D, sfTexture->getNativeHandle());
// Use PyTexture's sprite sheet configuration // Use PyTexture's sprite sheet configuration
int sheetW = texture_->sprite_width > 0 ? texture_->sprite_width : 1; 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 // Unbind texture
if (hasTexture) { if (hasTexture) {
sf::Texture::bind(nullptr); glBindTexture(GL_TEXTURE_2D, 0);
} }
// Reset UV uniforms // Reset UV uniforms