2.12.2021, 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit 738bdd6c authored by Declara Denis's avatar Declara Denis Committed by Christian Schulte zu Berge
Browse files

Added const to uploadTexture argument,

this avoids having to const_cast constant buffers before passing them as
input o the function
parent 1ce3187c
......@@ -368,7 +368,7 @@ void Texture::applyWrapping() {
glTexParameteri(type_, GL_TEXTURE_WRAP_R, wrap);
}
void Texture::uploadTexture(GLubyte* data, GLint format, GLenum dataType) {
void Texture::uploadTexture(const GLubyte* data, GLint format, GLenum dataType) {
bind();
switch (type_) {
......
......@@ -204,7 +204,7 @@ public:
* \param format OpenGL Format of the data in \a data.
* \param dataType OpenGL data type of the data in \a data.
*/
void uploadTexture(GLubyte* data, GLint format, GLenum dataType);
void uploadTexture(const GLubyte* data, GLint format, GLenum dataType);
/**
* Download texture from the GPU to a newly allocated buffer with
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment