Drawable Renderer (#1570), warnings
This commit is contained in:
committed by
Bart Louwers
parent
2359433d6c
commit
a06145fe92
@@ -85,8 +85,8 @@ public:
|
||||
void setColorAttrMode(ColorAttrMode mode) { colorAttrMode = mode; }
|
||||
|
||||
/// Width for lines
|
||||
int32_t getLineWidth() const { return lineWidth; }
|
||||
void setLineWidth(int32_t value) { lineWidth = value; }
|
||||
float getLineWidth() const { return lineWidth; }
|
||||
void setLineWidth(float value) { lineWidth = value; }
|
||||
|
||||
DepthMaskType getDepthType() const { return depthType; }
|
||||
void setDepthType(DepthMaskType value) { depthType = value; }
|
||||
@@ -158,7 +158,7 @@ protected:
|
||||
std::string vertexAttrName;
|
||||
std::string colorAttrName;
|
||||
mbgl::RenderPass renderPass;
|
||||
int32_t lineWidth = 1;
|
||||
float lineWidth = 1.0f;
|
||||
DrawPriority drawPriority = 0;
|
||||
int32_t layerIndex = -1;
|
||||
int32_t subLayerIndex = 0;
|
||||
|
||||
@@ -467,7 +467,7 @@ void RenderFillLayer::update(gfx::ShaderRegistry& shaders,
|
||||
outlineBuilder = context.createDrawableBuilder("fill-outline");
|
||||
outlineBuilder->setShader(outlineShader);
|
||||
outlineBuilder->setColorAttrMode(gfx::DrawableBuilder::ColorAttrMode::None);
|
||||
outlineBuilder->setLineWidth(2);
|
||||
outlineBuilder->setLineWidth(2.0f);
|
||||
outlineBuilder->setDepthType(gfx::DepthMaskType::ReadOnly);
|
||||
outlineBuilder->setCullFaceMode(gfx::CullFaceMode::disabled());
|
||||
outlineBuilder->setLayerIndex(layerIndex);
|
||||
@@ -549,7 +549,7 @@ void RenderFillLayer::update(gfx::ShaderRegistry& shaders,
|
||||
outlinePatternBuilder = context.createDrawableBuilder("fill-outline-pattern");
|
||||
outlinePatternBuilder->setShader(outlineShader);
|
||||
outlinePatternBuilder->setColorAttrMode(gfx::DrawableBuilder::ColorAttrMode::None);
|
||||
outlinePatternBuilder->setLineWidth(2);
|
||||
outlinePatternBuilder->setLineWidth(2.0f);
|
||||
outlinePatternBuilder->setDepthType(gfx::DepthMaskType::ReadOnly);
|
||||
outlinePatternBuilder->setCullFaceMode(gfx::CullFaceMode::disabled());
|
||||
outlinePatternBuilder->setLayerIndex(layerIndex);
|
||||
|
||||
Reference in New Issue
Block a user