mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Properly support gl_PointSize and gl_PointCoord
Fixes #21719. Fixes #20993. Fixes #20992. Fixes #21007. Fixes #20979.
This commit is contained in:
parent
aa9591137a
commit
8828925f4f
16 changed files with 44 additions and 243 deletions
|
@ -19,7 +19,7 @@ compositing = {path = "../compositing"}
|
|||
cssparser = "0.24"
|
||||
euclid = "0.19"
|
||||
fnv = "1.0"
|
||||
gleam = "0.6"
|
||||
gleam = "0.6.4"
|
||||
ipc-channel = "0.11"
|
||||
log = "0.4"
|
||||
num-traits = "0.2"
|
||||
|
|
|
@ -122,6 +122,14 @@ impl<VR: WebVRRenderHandler + 'static> WebGLThread<VR> {
|
|||
.expect("WebGLContext not found");
|
||||
let glsl_version = Self::get_glsl_version(&data.ctx);
|
||||
|
||||
// FIXME(nox): Should probably be done by offscreen_gl_context.
|
||||
if (glsl_version.major, glsl_version.minor) < (3, 1) {
|
||||
data.ctx.gl().enable(gl::POINT_SPRITE);
|
||||
}
|
||||
if !is_gles() {
|
||||
data.ctx.gl().enable(gl::PROGRAM_POINT_SIZE);
|
||||
}
|
||||
|
||||
WebGLCreateContextResult {
|
||||
sender: WebGLMsgSender::new(id, webgl_chan.clone()),
|
||||
limits,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue