we need to create the buffer
Somehow this only crashes when I use gdb. Change-Id: Ic18ffa3af931b80a7241e8fe711753db03da166e
This commit is contained in:
@@ -109,6 +109,7 @@ OpenGL3DRenderer::~OpenGL3DRenderer()
|
|||||||
glDeleteBuffers(1, &m_RenderTexCoordBuf);
|
glDeleteBuffers(1, &m_RenderTexCoordBuf);
|
||||||
glDeleteBuffers(1, &m_RenderVertexBuf);
|
glDeleteBuffers(1, &m_RenderVertexBuf);
|
||||||
glDeleteBuffers(1, &m_3DUBOBuffer);
|
glDeleteBuffers(1, &m_3DUBOBuffer);
|
||||||
|
glDeleteBuffers(1, &m_VertexBuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
void OpenGL3DRenderer::ShaderResources::LoadShaders()
|
void OpenGL3DRenderer::ShaderResources::LoadShaders()
|
||||||
@@ -216,6 +217,7 @@ void OpenGL3DRenderer::init()
|
|||||||
glGenBuffers(1, &m_CubeVertexBuf);
|
glGenBuffers(1, &m_CubeVertexBuf);
|
||||||
glGenBuffers(1, &m_CubeNormalBuf);
|
glGenBuffers(1, &m_CubeNormalBuf);
|
||||||
glGenBuffers(1, &m_CubeElementBuf);
|
glGenBuffers(1, &m_CubeElementBuf);
|
||||||
|
glGenBuffers(1, &m_VertexBuffer);
|
||||||
glGenBuffers(1, &m_BoundBox);
|
glGenBuffers(1, &m_BoundBox);
|
||||||
glBindBuffer(GL_ARRAY_BUFFER, m_BoundBox);
|
glBindBuffer(GL_ARRAY_BUFFER, m_BoundBox);
|
||||||
glBufferData(GL_ARRAY_BUFFER, sizeof(boundBox), boundBox, GL_STATIC_DRAW);
|
glBufferData(GL_ARRAY_BUFFER, sizeof(boundBox), boundBox, GL_STATIC_DRAW);
|
||||||
|
Reference in New Issue
Block a user