-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Revert lower baselines for the heatmaps in WebGL2 Firefox #12734
base: main
Are you sure you want to change the base?
Conversation
@@ -123,9 +123,10 @@ function bindTextureToFramebuffer(context: Context, painter: Painter, texture: ? | |||
// Use the higher precision half-float texture where available (producing much smoother looking heatmaps); | |||
// Otherwise, fall back to a low precision texture | |||
/* $FlowFixMe[prop-missing] WebGL2 */ | |||
const type = context.extRenderToTextureHalfFloat ? (context.isWebGL2 ? gl.HALF_FLOAT : context.extTextureHalfFloat.HALF_FLOAT_OES) : gl.UNSIGNED_BYTE; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heatmaps work with this fix now with WebGL2, but I'm unsure about removing the gl.getExtension('EXT_color_buffer_half_float')
check here. /cc @astojilj
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, this might break some Android GPUs that don't support EXT_color_buffer_half_float
. So we're still blocked by Firefox not supporting EXT_color_buffer_half_float
in WebGL 2.0 contexts.
Revert lower baselines for the heatmaps in WebGL2 Firefox from #12701
Launch Checklist
mapbox-gl-js
changelog:<changelog></changelog>