Commit b3ac5901 authored by Jan Möbius's avatar Jan Möbius
Browse files

Fixed more warnings in DrawMesh

parent 56ec47e5
Pipeline #3273 passed with stage
in 59 minutes and 58 seconds
......@@ -797,7 +797,7 @@ TextureBuffer::~TextureBuffer() {
}
void TextureBuffer::setBufferData(
int _size, const void* _data, GLenum _internalFormat, GLenum _usage) {
size_t _size, const void* _data, GLenum _internalFormat, GLenum _usage) {
#if defined(GL_ARB_texture_buffer_object)
if (supportsTextureBuffer()) {
// setup buffer object
......@@ -805,7 +805,7 @@ void TextureBuffer::setBufferData(
glGenBuffers(1, &buffer_);
glBindBuffer(GL_TEXTURE_BUFFER, buffer_);
glBufferData(GL_TEXTURE_BUFFER, _size, _data, _usage);
glBufferData(GL_TEXTURE_BUFFER, static_cast<GLsizei>(_size), _data, _usage);
usage_ = _usage;
fmt_ = _internalFormat;
......
......@@ -530,9 +530,9 @@ public:
// _data buffer data
// _internalFormat format of buffer - http://www.opengl.org/sdk/docs/man3/xhtml/glTexBuffer.xml
// _usage buffer usage hint - https://www.opengl.org/sdk/docs/man3/xhtml/glBufferData.xml
void setBufferData(int _size, const void* _data, GLenum _internalFormat, GLenum _usage = GL_STATIC_DRAW);
void setBufferData(size_t _size, const void* _data, GLenum _internalFormat, GLenum _usage = GL_STATIC_DRAW);
int getBufferSize() const {return bufferSize_;}
size_t getBufferSize() const {return bufferSize_;}
GLuint getBufferId() const {return buffer_;}
......@@ -547,7 +547,7 @@ public:
private:
int bufferSize_;
size_t bufferSize_;
GLuint buffer_;
GLenum usage_;
GLenum fmt_;
......
Supports Markdown
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