Start moving the framebuffer stuff over to the render manager

This commit is contained in:
Henrik Rydgård committed 2018-01-27 15:10:17 +01:00
1 parent 7e3e652963
commit 062608ad78
7 files changed
+443 -475

No files matched your search

+13 -5
View File
@@ -1,6 +1,7 @@
#include <cassert>
#include "GLRenderManager.h"
#include "gfx_es2/gpu_features.h"
#include "thread/threadutil.h"
#include "base/logging.h"
@@ -10,10 +11,6 @@
#define VLOG(...)
#endif
void GLCreateImage(GLRImage &img, int width, int height, GLuint format, bool color) {
}
void GLDeleter::Perform() {
for (auto shader : shaders) {
delete shader;
@@ -21,7 +18,18 @@ void GLDeleter::Perform() {
for (auto program : programs) {
delete program;
}
// ..
for (auto buffer : buffers) {
delete buffer;
}
for (auto texture : textures) {
delete texture;
}
for (auto inputLayout : inputLayouts) {
delete inputLayout;
}
for (auto framebuffer : framebuffers) {
delete framebuffer;
}
}
GLRenderManager::GLRenderManager() {