Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release-caspian] Fix binder.setUniform error symbol in draw loop #9491

Merged
merged 1 commit into from
Apr 2, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions src/render/draw_symbol.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,6 @@ function drawLayerSymbols(painter, sourceCache, layer, coords, isText, translate

const depthMode = painter.depthModeForSublayer(0, DepthMode.ReadOnly);

let program;
let size;
const variablePlacement = layer.layout.get('text-variable-anchor');

const tileRenderState: Array<SymbolTileRenderState> = [];
Expand All @@ -259,10 +257,8 @@ function drawLayerSymbols(painter, sourceCache, layer, coords, isText, translate
const sizeData = isText ? bucket.textSizeData : bucket.iconSizeData;
const transformed = pitchWithMap || tr.pitch !== 0;

if (!program) {
program = painter.useProgram(getSymbolProgramName(isSDF, isText, bucket), programConfiguration);
size = symbolSize.evaluateSizeForZoom(sizeData, tr.zoom);
}
const program = painter.useProgram(getSymbolProgramName(isSDF, isText, bucket), programConfiguration);
const size = symbolSize.evaluateSizeForZoom(sizeData, tr.zoom);

let texSize: [number, number];
let texSizeIcon: [number, number] = [0, 0];
Expand Down