[core] rename gl::Config to gl::Context
This commit is contained in:
committed by
John Firebaugh
parent
21386b3146
commit
ce42d22984
@@ -7,9 +7,9 @@ namespace mbgl {
|
||||
|
||||
using namespace style;
|
||||
|
||||
void RasterBucket::upload(gl::ObjectStore& store, gl::Config& config) {
|
||||
void RasterBucket::upload(gl::ObjectStore& store, gl::Context& context) {
|
||||
if (hasData()) {
|
||||
raster.upload(store, config, 0);
|
||||
raster.upload(store, context, 0);
|
||||
uploaded = true;
|
||||
}
|
||||
}
|
||||
@@ -28,11 +28,11 @@ void RasterBucket::setImage(PremultipliedImage image) {
|
||||
void RasterBucket::drawRaster(RasterShader& shader,
|
||||
StaticRasterVertexBuffer& vertices,
|
||||
VertexArrayObject& array,
|
||||
gl::Config& config,
|
||||
gl::Context& context,
|
||||
gl::ObjectStore& store) {
|
||||
raster.bind(store, config, 0, Raster::Scaling::Linear);
|
||||
raster.bind(store, config, 1, Raster::Scaling::Linear);
|
||||
array.bind(shader, vertices, BUFFER_OFFSET_0, store, config);
|
||||
raster.bind(store, context, 0, Raster::Scaling::Linear);
|
||||
raster.bind(store, context, 1, Raster::Scaling::Linear);
|
||||
array.bind(shader, vertices, BUFFER_OFFSET_0, store, context);
|
||||
MBGL_CHECK_ERROR(glDrawArrays(GL_TRIANGLE_STRIP, 0, (GLsizei)vertices.index()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user