Bugfix
All checks were successful
Run ReCI Build Test / Explore-Gitea-Actions (push) Successful in 2m44s

Fixed a bug that would sometimes cause rendering text after rendering an alpha-masked sprite to be invisible.
This commit is contained in:
2025-01-03 22:22:37 -05:00
parent b84e2ee2c5
commit 1964aeae86
2 changed files with 2 additions and 4 deletions

View File

@@ -321,6 +321,7 @@ int main(int argc, char** argv) {
if (!file.is_open())
return -1;
/*
std::stringstream buffer;
buffer << file.rdbuf();
std::string file_text = buffer.str();
@@ -328,6 +329,7 @@ int main(int argc, char** argv) {
std::cout << file_text << std::endl;
auto result = VertexArray::LoadAMO(file_text);
*/
ReWindow::Logger::Error.EnableConsole(false);
ReWindow::Logger::Warning.EnableConsole(false);
@@ -336,7 +338,4 @@ int main(int argc, char** argv) {
while (window->IsAlive())
window->ManagedRefresh();
return 0;
//for (const auto& v3 : result)
//std::cout << v3.x << " " << v3.y << " " << v3.z << std::endl;
}

View File

@@ -485,7 +485,6 @@ void JGL::J2D::DrawSprite(const Texture& texture, const Texture &alpha_mask, con
// Reset Texture 1.
glBindTexture(GL_TEXTURE_2D, 0);
glDisableClientState(GL_TEXTURE_COORD_ARRAY);
glDisableClientState(GL_VERTEX_ARRAY);
glDisable(GL_TEXTURE_2D);
// Reset Texture 0.