1
Graphics / Re: SFML 3 and Android, full black screen and gl erros
« on: March 11, 2025, 06:42:40 pm »
Same error with the example code:
But everything is rendered normally
Code: [Select]
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode({200, 200}), "SFML works!");
sf::CircleShape shape(100.f);
shape.setFillColor(sf::Color::Green);
while (window.isOpen())
{
while (const std::optional event = window.pollEvent())
{
if (event->is<sf::Event::Closed>())
window.close();
}
window.clear();
window.draw(shape);
window.display();
}
}
Code: [Select]
03-11 18:38:57.821 29379 29463 E libEGL : call to OpenGL ES API with no current context (logged once per thread)
03-11 18:38:57.821 29379 29463 I sfml-error: Warning: The created OpenGL context does not fully meet the settings that were requested
03-11 18:38:57.822 29379 29463 I sfml-error: Requested: version = 1.1 ; depth bits = 0 ; stencil bits = 0 ; AA level = 0 ; core = false ; debug = false ; sRGB = false
03-11 18:38:57.822 29379 29463 I sfml-error: Created: version = 0.0 ; depth bits = 0 ; stencil bits = 0 ; AA level = 0 ; core = false ; debug = false ; sRGB = false
03-11 18:38:57.822 29379 29463 I sfml-error: Failed to activate the window's context
03-11 18:38:57.822 29379 29463 I sfml-error: Failed to activate the window's context
03-11 18:38:57.822 29379 29463 I sfml-error: Failed to set window as active during initialization
Followed by this error message in loopCode: [Select]
03-11 18:38:57.822 29379 29463 I sfml-error: Failed to activate the window's context
But everything is rendered normally