mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
correctly delete glbuffers
This commit is contained in:
parent
912b851eb7
commit
5eecb6a837
2 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -32,7 +32,7 @@ public:
|
|||
static void checkGLError();
|
||||
|
||||
|
||||
class GLBuffer {
|
||||
class GLBuffer : public GPUObject {
|
||||
public:
|
||||
Stamp _stamp;
|
||||
GLuint _buffer;
|
||||
|
|
Loading…
Reference in a new issue