mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-05 19:19:39 -06:00
Fixed crash with ABufferFixed implementation
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
|
||||
#ifndef __RENDERABLEPLANETPROJECTION_H__
|
||||
#define __RENDERABLEPLANETPROJECTION_H__
|
||||
|
||||
#include <ghoul/opengl/textureunit.h>
|
||||
|
||||
// open space includes
|
||||
|
||||
@@ -57,9 +57,9 @@ int build_local_fragments_list() {
|
||||
return int(frag_count);
|
||||
#endif
|
||||
|
||||
#if ABUFFER_IMPLEMENTATION == ABUFFER_FRAMEBUFFER
|
||||
// #if ABUFFER_IMPLEMENTATION == ABUFFER_FRAMEBUFFER
|
||||
return 0;
|
||||
#endif
|
||||
// #endif
|
||||
}
|
||||
|
||||
float pscLength(vec4 v1, vec4 v2) {
|
||||
|
||||
@@ -45,9 +45,6 @@ ABufferFixed::ABufferFixed(): _data(0), _anchorPointerTexture(0),
|
||||
{}
|
||||
|
||||
ABufferFixed::~ABufferFixed() {
|
||||
if(_data != 0)
|
||||
delete _data;
|
||||
|
||||
glDeleteTextures(1,&_anchorPointerTexture);
|
||||
glDeleteTextures(1,&_fragmentTexture);
|
||||
// glDeleteTextures(1,&_atomicCounterTexture);
|
||||
|
||||
@@ -183,9 +183,7 @@ void RenderablePlane::update(const UpdateData& data) {
|
||||
}
|
||||
|
||||
void RenderablePlane::loadTexture() {
|
||||
LDEBUG("loadTexture");
|
||||
if (_texturePath.value() != "") {
|
||||
LDEBUG("loadTexture2");
|
||||
ghoul::opengl::Texture* texture = ghoul::io::TextureReader::ref().loadTexture(absPath(_texturePath));
|
||||
if (texture) {
|
||||
LDEBUG("Loaded texture from '" << absPath(_texturePath) << "'");
|
||||
|
||||
Reference in New Issue
Block a user