unsegfault

This commit is contained in:
2025-05-05 16:30:35 -05:00
parent 03213c2c15
commit 62b7618ff4
5 changed files with 8 additions and 9 deletions

View File

@@ -11,11 +11,9 @@ namespace Archimedes {
public:
int w, h;
Renderer(void* p = nullptr) : ptr(p) {}
~Renderer() {}
bool init() { return r.init(ptr); }
bool init(void* ptr) { return r.init(ptr); }
void render() {
r.render(rc, w, h);
@@ -30,7 +28,6 @@ namespace Archimedes {
private:
std::list<std::function<void()>> rc;
RendererImpl r;
void* ptr;
};
}