Added NoCopy to FrameBuffer objects (copying a frame buffer e.g.

as a parameter to a function can lead to incorrect results, likely
because on exit of the function, data in the (copied) frame buffer
object is freed, and then not available for OpenGL anymore.
This commit is contained in:
hiker 2015-06-03 15:10:11 +10:00
parent 2cf4341916
commit 9094cbd31a

View File

@ -24,6 +24,7 @@
#include "graphics/texture_manager.hpp"
#include "graphics/vao_manager.hpp"
#include "utils/log.hpp"
#include "utils/no_copy.hpp"
#include "utils/vec3.hpp"
#include <vector>
@ -59,7 +60,7 @@ public:
unsigned elapsedTimeus();
};
class FrameBuffer
class FrameBuffer : public NoCopy
{
private:
GLuint fbo, fbolayer;