Yes perhaps you are right. If I use glDrawBuffers directly, it seems to 
work (no GL error reported), however glDrawBuffers is not supported by 
WebGL 1.0 specs. To use it, one must query for the extension 
WEBGL_draw_buffers.

So then I am wondering, what does Emscripten glDrawBuffers map to?



On Sunday, August 24, 2014 12:39:31 PM UTC-4, Robert Goulet wrote:
>
> Hello,
>
> I am trying to get a WebGL extension, namely WEBGL_draw_buffers, using 
> glfwGetProcAddress and it always return nullptr. When I list all the 
> available extensions of my browser I clearly see that WEBGL_draw_buffers 
> is listed, and I am even able to run a demo on a web page that make use of 
> it. So why glfwGetProcAddress always returns nullptr when used with 
> Emscripten? Is this supposed to work?
>
> Chrome JS console output this error:
> bad name in getProcAddress: WEBGL_draw_buffers | WEBGL_draw_buffers
>
> Also I am not sure if this is needed, but I made sure WebGL draft 
> extensions are enabled in Chrome.
>
> Or maybe glDrawBuffers is already mapped to WEBGL_draw_buffers when used 
> in Emscripten? Can anyone confirm/deny this?
>
> Thank you!
>

-- 
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