mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 19:03:07 +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
|
#ifndef hifi_gpu_Context_h
|
||||||
#define hifi_gpu_Context_h
|
#define hifi_gpu_Context_h
|
||||||
|
|
||||||
|
#include <QDebug>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#include "Resource.h"
|
#include "Resource.h"
|
||||||
|
@ -21,7 +22,7 @@ namespace gpu {
|
||||||
class GPUObject {
|
class GPUObject {
|
||||||
public:
|
public:
|
||||||
GPUObject() {}
|
GPUObject() {}
|
||||||
~GPUObject() {}
|
virtual ~GPUObject() {}
|
||||||
};
|
};
|
||||||
|
|
||||||
class Batch;
|
class Batch;
|
||||||
|
|
|
@ -32,7 +32,7 @@ public:
|
||||||
static void checkGLError();
|
static void checkGLError();
|
||||||
|
|
||||||
|
|
||||||
class GLBuffer {
|
class GLBuffer : public GPUObject {
|
||||||
public:
|
public:
|
||||||
Stamp _stamp;
|
Stamp _stamp;
|
||||||
GLuint _buffer;
|
GLuint _buffer;
|
||||||
|
|
Loading…
Reference in a new issue