diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2016-09-29 12:15:36 +0200 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-09-29 10:17:47 -0700 |
commit | 15aece8a30dcc1f1f97e28180edda46d05641a2d (patch) | |
tree | 51284a75c6aa16614192988641ce71f59c794dd8 /src/mbgl/gl/object.cpp | |
parent | d1a84d9b51a7145f9f7665805cf71050aac7bc63 (diff) | |
download | qtlocation-mapboxgl-15aece8a30dcc1f1f97e28180edda46d05641a2d.tar.gz |
[core] introduces types for GL objects
Diffstat (limited to 'src/mbgl/gl/object.cpp')
-rw-r--r-- | src/mbgl/gl/object.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mbgl/gl/object.cpp b/src/mbgl/gl/object.cpp index 90451da713..aee87f8836 100644 --- a/src/mbgl/gl/object.cpp +++ b/src/mbgl/gl/object.cpp @@ -7,22 +7,22 @@ namespace mbgl { namespace gl { namespace detail { -void ProgramDeleter::operator()(GLuint id) const { +void ProgramDeleter::operator()(ProgramID id) const { assert(context); context->abandonedPrograms.push_back(id); } -void ShaderDeleter::operator()(GLuint id) const { +void ShaderDeleter::operator()(ShaderID id) const { assert(context); context->abandonedShaders.push_back(id); } -void BufferDeleter::operator()(GLuint id) const { +void BufferDeleter::operator()(BufferID id) const { assert(context); context->abandonedBuffers.push_back(id); } -void TextureDeleter::operator()(GLuint id) const { +void TextureDeleter::operator()(TextureID id) const { assert(context); if (context->pooledTextures.size() >= TextureMax) { context->abandonedTextures.push_back(id); @@ -31,12 +31,12 @@ void TextureDeleter::operator()(GLuint id) const { } } -void VertexArrayDeleter::operator()(GLuint id) const { +void VertexArrayDeleter::operator()(VertexArrayID id) const { assert(context); context->abandonedVertexArrays.push_back(id); } -void FramebufferDeleter::operator()(GLuint id) const { +void FramebufferDeleter::operator()(FramebufferID id) const { assert(context); context->abandonedFramebuffers.push_back(id); } |