Skip to content

Commit

Permalink
Do not destroy texture before creating the sprites...
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Alonso(fr) committed Apr 28, 2020
1 parent 0ce538b commit 68ec9dc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gfx/tiling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

#include <unordered_map>
#include <SFML/Graphics.hpp>
#include <SFML/OpenGL.hpp>
#include "res_image.hpp"
#include "render_image.hpp"
#include "render_shapes.hpp"
Expand Down Expand Up @@ -110,4 +111,8 @@ void init_tiling() {
}
bg[i] = prepareForTiling(bg_gworld, bg_rects[i]);
}
#ifdef __APPLE__
// FIXME: the texture are destroyed at the end of this function, so we must force a glFlush
glFlush();
#endif
}

0 comments on commit 68ec9dc

Please sign in to comment.