SFML Failed to Create Window’s Context (Single Threaded)
I’m building a game engine, and I made a custom interface to the OS (it’s barebones for now, but I plan to expand it) that I can reimplement for each platform to keep things cross-platform. My current implementation is quick & dirty using SFML middleware to save time during testing (I eventually plan to port to Windows/D3D or GTK/Vulkan). However, I’m getting the error “Failed to Create Window’s Context.” I looked online for people with the same problem, but it almost always arose from multithreading. However, I haven’t done any multithreading optimizations yet, so my code has no threads. I have no usage whatsoever of std::async
/std::thread
(or equivalents). Instead, I have a basic window class in my header os.hpp
, and a simple SFML implementation in os.cpp
.