> On 2016 Nov 24, at 4:59, Tero Pulkkinen <[email protected]> wrote:
> 
> webgl with emscripten seems to do something odd with GL_POINTS in windows. 
> Linux/mac builds works ok, but windows browsers seem to give just black 
> screen where I expect some white points. normal opengl build in win32 works 
> ok, so it is something webgl related. The generated emscripten javascript 
> code is able to show the GL_POINTS; but only in linux/mac build. Every 
> browser in windows seem to have this problem, I've tried it with two versions 
> of chrome, edge and firefox, but they all seem to give just black screen 
> where GL_POINTS are expected. I've tried nvidia's gfx card, and intel card, 
> but both drivers are giving the same problem.
> 
> I know shaders have some issues with number of uniform variables in webgl, 
> such that the limits are very small, like 15 uniform variables, before it 
> hits black screen kind of problems, but I don't think this piece of code goes 
> above that limit.
> 
> Is there anyone who has got GL_POINTS working in windows webgl under 
> emscripten?

Are you setting gl_PointSize in your shader(s)? This is required in OpenGL ES 
and WebGL but not in OpenGL. If not then it is likely that the Linux/Mac 
browsers you are using are using an OpenGL back-end and are failing to enforce 
this requirement while those on Windows are using ANGLE or equivalent which are.

Regards

    -Mark

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to