correctly delete glbuffers

This commit is contained in:
ZappoMan 2015-02-25 14:44:10 -08:00
parent 912b851eb7
commit 5eecb6a837
2 changed files with 3 additions and 2 deletions

View file

@ -11,6 +11,7 @@
#ifndef hifi_gpu_Context_h
#define hifi_gpu_Context_h
#include <QDebug>
#include <assert.h>
#include "Resource.h"
@ -21,7 +22,7 @@ namespace gpu {
class GPUObject {
public:
GPUObject() {}
~GPUObject() {}
virtual ~GPUObject() {}
};
class Batch;

View file

@ -32,7 +32,7 @@ public:
static void checkGLError();
class GLBuffer {
class GLBuffer : public GPUObject {
public:
Stamp _stamp;
GLuint _buffer;