From 7ebca63db30fdfb9b558b7fbd8738c3e9a9657fa Mon Sep 17 00:00:00 2001 From: John McCardle Date: Thu, 5 Feb 2026 00:29:40 -0500 Subject: [PATCH] emscripten build fixes --- src/3d/Billboard.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/3d/Billboard.cpp b/src/3d/Billboard.cpp index d7bd3bf..5937212 100644 --- a/src/3d/Billboard.cpp +++ b/src/3d/Billboard.cpp @@ -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