PDA

View Full Version : Unable to run Webgl in Firefox nightly under (ubuntu) linux



laszlo
11-22-2009, 01:19 AM
Hi!

Pages containing webgl codes fails with Can't find symbol 'ActiveTexture' error message.

If somebody use Webgl under linux with firefox, can he please post the value of webgl.osmesalib?
And also which package contains the referenced file?

Im fighting with this issue more than a mont, here are some references:
http://groups.google.com/group/mozilla. ... 4f92?pli=1 (http://groups.google.com/group/mozilla.feedback.firefox.prerelease/browse_thread/thread/cfc923de60994f92?pli=1)

http://learningwebgl.com/blog/?p=724

Any idea is warmly welcomed.

Best regards,
Laszlo

Coolcat
11-22-2009, 04:44 AM
If somebody use Webgl under linux with firefox, can he please post the value of webgl.osmesalib?
And also which package contains the referenced file?
These are my settings:

webgl.enabled_for_all_sites = true
webgl.osmesalib = (empty string)
webgl.software_render = false
I'm using the proprietary Nvidia graphics driver 190.42 on Fedora 11 Linux with Geforce 9800 GT. Works fine.

Here is a description how to set webgl.osmesalib on Windows when no OpenGL driver is available:
http://hacks.mozilla.org/2009/09/webgl-for-firefox/
I think that setting is just for Windows, on Linux it does find the driver automatically.

laszlo
11-22-2009, 07:10 AM
I have intel driver:


ii xserver-xorg-video-intel 2:2.6.3-0ubuntu8 X.Org X server -- Intel i8xx, i9xx display d
ii libdrm-intel1 2.4.5-0ubuntu4 Userspace interface to intel-specific kernel


With an intel 4500MHD mobile chipset. This is on ubuntu 9.04.
however on ubuntu 9.10 the error message are the same (the intel driver version is not the same).

So basically my problem is that firefox cant find the proper opengl driver (if it even looks after the intel driver at all).

Thank you the heads up. Still no idea how to evolve from here.

Coolcat
11-22-2009, 07:46 AM
Does glxgears work? What does glxinfo say?

laszlo
11-22-2009, 10:18 AM
Yepp, glxgears works. Also blender works too.



lam@laza:~/Desktop/down/skeinforge/miscellaneous/nophead$ glxgears
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
after 4396 requests (42 known processed) with 0 events remaining.
lam@laza:~/Desktop/down/skeinforge/miscellaneous/nophead$ glxinfo
name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap,
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer,
GLX_OML_swap_method, GLX_SGI_make_current_read, GLX_SGI_swap_control,
GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_visual_select_group
client glx vendor string: SGI
client glx version string: 1.4
client glx extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory,
GLX_MESA_copy_sub_buffer, GLX_MESA_swap_control,
GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_OML_sync_control,
GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync,
GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
GLX_SGIX_visual_select_group, GLX_EXT_texture_from_pixmap
GLX version: 1.2
GLX extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer,
GLX_MESA_swap_control, GLX_MESA_swap_frame_usage, GLX_OML_swap_method,
GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync,
GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_visual_select_group
OpenGL vendor string: Tungsten Graphics, Inc
OpenGL renderer string: Mesa DRI Mobile Intel® GM45 Express Chipset GEM 20090326 2009Q1 RC2 x86/MMX/SSE2
OpenGL version string: 2.0 Mesa 7.4
OpenGL shading language version string: 1.10
OpenGL extensions:
GL_ARB_depth_texture, GL_ARB_draw_buffers, GL_ARB_fragment_program,
GL_ARB_fragment_program_shadow, GL_ARB_fragment_shader,
GL_ARB_multisample, GL_ARB_multitexture, GL_ARB_occlusion_query,
GL_ARB_pixel_buffer_object, GL_ARB_point_parameters, GL_ARB_point_sprite,
GL_ARB_shader_objects, GL_ARB_shading_language_100, GL_ARB_shadow,
GL_ARB_texture_border_clamp, GL_ARB_texture_compression,
GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
GL_ARB_texture_env_combine, GL_ARB_texture_env_crossbar,
GL_ARB_texture_env_dot3, GL_ARB_texture_mirrored_repeat,
GL_ARB_texture_non_power_of_two, GL_ARB_texture_rectangle,
GL_ARB_transpose_matrix, GL_ARB_vertex_buffer_object,
GL_ARB_vertex_program, GL_ARB_vertex_shader, GL_ARB_window_pos,
GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color,
GL_EXT_blend_equation_separate, GL_EXT_blend_func_separate,
GL_EXT_blend_logic_op, GL_EXT_blend_minmax, GL_EXT_blend_subtract,
GL_EXT_clip_volume_hint, GL_EXT_cull_vertex, GL_EXT_compiled_vertex_array,
GL_EXT_copy_texture, GL_EXT_draw_range_elements,
GL_EXT_framebuffer_object, GL_EXT_fog_coord, GL_EXT_multi_draw_arrays,
GL_EXT_packed_depth_stencil, GL_EXT_packed_pixels,
GL_EXT_pixel_buffer_object, GL_EXT_point_parameters,
GL_EXT_polygon_offset, GL_EXT_rescale_normal, GL_EXT_secondary_color,
GL_EXT_separate_specular_color, GL_EXT_shadow_funcs, GL_EXT_stencil_wrap,
GL_EXT_subtexture, GL_EXT_texture, GL_EXT_texture3D,
GL_EXT_texture_edge_clamp, GL_EXT_texture_env_add,
GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3,
GL_EXT_texture_filter_anisotropic, GL_EXT_texture_lod_bias,
GL_EXT_texture_object, GL_EXT_texture_rectangle, GL_EXT_texture_sRGB,
GL_EXT_vertex_array, GL_3DFX_texture_compression_FXT1,
GL_APPLE_client_storage, GL_APPLE_packed_pixels,
GL_ATI_blend_equation_separate, GL_ATI_texture_env_combine3,
GL_ATI_separate_stencil, GL_IBM_rasterpos_clip,
GL_IBM_texture_mirrored_repeat, GL_INGR_blend_func_separate,
GL_MESA_pack_invert, GL_MESA_ycbcr_texture, GL_MESA_window_pos,
GL_NV_blend_square, GL_NV_light_max_exponent, GL_NV_point_sprite,
GL_NV_texture_rectangle, GL_NV_texgen_reflection, GL_NV_vertex_program,
GL_NV_vertex_program1_1, GL_OES_read_format, GL_SGIS_generate_mipmap,
GL_SGIS_texture_border_clamp, GL_SGIS_texture_edge_clamp,
GL_SGIS_texture_lod, GL_SGIX_depth_texture, GL_SUN_multi_draw_arrays

36 GLX Visuals
visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
----------------------------------------------------------------------
0x21 24 tc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x22 24 dc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x88 24 tc 0 32 0 r . . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0x89 24 tc 0 32 0 r . . 8 8 8 8 0 0 0 16 16 16 16 0 0 Slow
0x8a 24 tc 0 32 0 r y . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0x8b 24 tc 0 32 0 r y . 8 8 8 8 0 0 0 16 16 16 16 0 0 Slow
0x8c 24 tc 0 32 0 r y . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0x8d 24 tc 0 32 0 r y . 8 8 8 8 0 0 0 16 16 16 16 0 0 Slow
0x8e 24 tc 0 32 0 r . . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x8f 24 tc 0 32 0 r . . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0x90 24 tc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0x91 24 tc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0x92 24 tc 0 32 0 r . . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x93 24 tc 0 32 0 r . . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0x94 24 tc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x95 24 tc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0x96 24 tc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x97 24 tc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0x98 24 dc 0 32 0 r . . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0x99 24 dc 0 32 0 r . . 8 8 8 8 0 0 0 16 16 16 16 0 0 Slow
0x9a 24 dc 0 32 0 r y . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0x9b 24 dc 0 32 0 r y . 8 8 8 8 0 0 0 16 16 16 16 0 0 Slow
0x9c 24 dc 0 32 0 r y . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0x9d 24 dc 0 32 0 r y . 8 8 8 8 0 0 0 16 16 16 16 0 0 Slow
0x9e 24 dc 0 32 0 r . . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x9f 24 dc 0 32 0 r . . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0xa0 24 dc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0xa1 24 dc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0xa2 24 dc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0xa3 24 dc 0 32 0 r . . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0xa4 24 dc 0 32 0 r . . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0xa5 24 dc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0xa6 24 dc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0xa7 24 dc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0xa8 24 dc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0x63 32 tc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None

36 GLXFBConfigs:
visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
----------------------------------------------------------------------
0x64 0 tc 0 32 0 r . . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0x65 0 tc 0 32 0 r . . 8 8 8 8 0 0 0 16 16 16 16 0 0 Slow
0x66 0 tc 0 32 0 r y . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0x67 0 tc 0 32 0 r y . 8 8 8 8 0 0 0 16 16 16 16 0 0 Slow
0x68 0 tc 0 32 0 r y . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0x69 0 tc 0 32 0 r y . 8 8 8 8 0 0 0 16 16 16 16 0 0 Slow
0x6a 0 tc 0 32 0 r . . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x6b 0 tc 0 32 0 r . . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0x6c 0 tc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x6d 0 tc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0x6e 0 tc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x6f 0 tc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0x70 0 tc 0 32 0 r . . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x71 0 tc 0 32 0 r . . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0x72 0 tc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x73 0 tc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0x74 0 tc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x75 0 tc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0x76 0 dc 0 32 0 r . . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0x77 0 dc 0 32 0 r . . 8 8 8 8 0 0 0 16 16 16 16 0 0 Slow
0x78 0 dc 0 32 0 r y . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0x79 0 dc 0 32 0 r y . 8 8 8 8 0 0 0 16 16 16 16 0 0 Slow
0x7a 0 dc 0 32 0 r y . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0x7b 0 dc 0 32 0 r y . 8 8 8 8 0 0 0 16 16 16 16 0 0 Slow
0x7c 0 dc 0 32 0 r . . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x7d 0 dc 0 32 0 r . . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0x7e 0 dc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x7f 0 dc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0x80 0 dc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x81 0 dc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0x82 0 dc 0 32 0 r . . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x83 0 dc 0 32 0 r . . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0x84 0 dc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x85 0 dc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0x86 0 dc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x87 0 dc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow

Coolcat
11-22-2009, 02:00 PM
direct rendering: Yes
...
OpenGL version string: 2.0 Mesa 7.4
OpenGL shading language version string: 1.10
I think that's the problem:

The OpenGL ES Shading Language (also known as GLSL ES or ESSL) is based on the OpenGL Shading Language (GLSL) version 1.20.
Since hardware acceleration is available, Firefox tries to use it, but your driver doesn't support OpenGL ES 2.0. Do you have tried to set webgl.software_render to true?

laszlo
11-22-2009, 10:51 PM
Since hardware acceleration is available, Firefox tries to use it, but your driver doesn't support OpenGL ES 2.0. Do you have tried to set webgl.software_render to true?
If I set webgl software render to true, it errors could not initialize webgl canvas in a popup window.
I believe this console message corresponds to the above error:



Canvas 3D: creating PBuffer...
nsGLPbufferOSMESA: gActiveBuffers: 1
Surface: 0xa4591720
Resize: 2 2
Can't find symbol 'ActiveTexture'
Canvas 3D: GLWrap init failed
Canvas 3D: creating PBuffer...
nsGLPbufferOSMESA: gActiveBuffers: 2
Canvas 3D: Couldn't open OSMesa lib -- webgl.osmesalib path is incorrect, or not a valid shared library


Now, if I delete the webgl.osmesalib, firefox unable to start anymore. Always the crash report window popups at startup.

Maybe intel driver catched up with opengl ES 2.0 recently. I try to google up.

laszlo
11-23-2009, 03:06 PM
I have an another computer, which has an nvidia geforce4 420Go:


01:00.0 VGA compatible controller: nVidia Corporation NV17 [GeForce4 420 Go 32M] (rev a3)


I installed nvidia-glx-96, because this is the latest driver, which support this card.
I installed to this computer (hp compa nx9105) ubuntu 9.10, with the propriatery nvidia driver.

Im still unable to run any WebGL contents.
Here is the glxinfo output:


lama@lamaz:~/Asztal/down/firefox$ glxinfo
name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
server glx version string: 1.4
server glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer, GLX_SGI_video_sync, GLX_SGI_swap_control,
GLX_EXT_texture_from_pixmap
client glx vendor string: NVIDIA Corporation
client glx version string: 1.4
client glx extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_visual_info,
GLX_EXT_visual_rating, GLX_EXT_import_context, GLX_SGI_video_sync,
GLX_NV_swap_group, GLX_NV_video_out, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
GLX_SGI_swap_control, GLX_NV_float_buffer, GLX_ARB_fbconfig_float,
GLX_EXT_fbconfig_packed_float, GLX_EXT_texture_from_pixmap
GLX version: 1.3
GLX extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer, GLX_SGI_video_sync, GLX_SGI_swap_control,
GLX_EXT_texture_from_pixmap, GLX_ARB_get_proc_address
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce4 420 Go 32M/AGP/SSE2/3DNOW!
OpenGL version string: 1.5.8 NVIDIA 96.43.13
OpenGL extensions:
GL_ARB_imaging, GL_ARB_multitexture, GL_ARB_pixel_buffer_object,
GL_ARB_point_parameters, GL_ARB_point_sprite, GL_ARB_shader_objects,
GL_ARB_shading_language_100, GL_ARB_texture_compression,
GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
GL_ARB_texture_env_combine, GL_ARB_texture_env_dot3,
GL_ARB_texture_mirrored_repeat, GL_ARB_texture_rectangle,
GL_ARB_transpose_matrix, GL_ARB_vertex_buffer_object,
GL_ARB_vertex_program, GL_ARB_vertex_shader, GL_ARB_window_pos,
GL_S3_s3tc, GL_EXT_texture_env_add, GL_EXT_abgr, GL_EXT_bgra,
GL_EXT_blend_color, GL_EXT_blend_minmax, GL_EXT_blend_subtract,
GL_EXT_clip_volume_hint, GL_EXT_compiled_vertex_array, GL_EXT_Cg_shader,
GL_EXT_draw_range_elements, GL_EXT_fog_coord,
GL_EXT_gpu_program_parameters, GL_EXT_multi_draw_arrays,
GL_EXT_packed_pixels, GL_EXT_paletted_texture, GL_EXT_pixel_buffer_object,
GL_EXT_point_parameters, GL_EXT_rescale_normal, GL_EXT_secondary_color,
GL_EXT_separate_specular_color, GL_EXT_shared_texture_palette,
GL_EXT_stencil_wrap, GL_EXT_texture_compression_s3tc,
GL_EXT_texture_cube_map, GL_EXT_texture_edge_clamp,
GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3,
GL_EXT_texture_filter_anisotropic, GL_EXT_texture_lod,
GL_EXT_texture_lod_bias, GL_EXT_texture_object, GL_EXT_vertex_array,
GL_IBM_rasterpos_clip, GL_IBM_texture_mirrored_repeat,
GL_KTX_buffer_region, GL_NV_blend_square, GL_NV_fence,
GL_NV_fog_distance, GL_NV_light_max_exponent, GL_NV_packed_depth_stencil,
GL_NV_pixel_data_range, GL_NV_point_sprite, GL_NV_register_combiners,
GL_NV_texgen_reflection, GL_NV_texture_env_combine4,
GL_NV_texture_rectangle, GL_NV_vertex_array_range,
GL_NV_vertex_array_range2, GL_NV_vertex_program, GL_NV_vertex_program1_1,
GL_SGIS_generate_mipmap, GL_SGIS_multitexture, GL_SGIS_texture_lod,
GL_SUN_slice_accum

48 GLX Visuals
visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
----------------------------------------------------------------------
0x21 24 tc 0 32 0 r y . 8 8 8 0 4 24 8 16 16 16 16 0 0 None
0x22 24 dc 0 32 0 r y . 8 8 8 0 4 24 8 16 16 16 16 0 0 None
0x24 24 tc 0 32 0 r y . 8 8 8 8 4 24 8 16 16 16 16 0 0 None
0x25 24 tc 0 32 0 r . . 8 8 8 0 4 24 8 16 16 16 16 0 0 None
0x26 24 tc 0 32 0 r . . 8 8 8 8 4 24 8 16 16 16 16 0 0 None
0x27 24 tc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x28 24 tc 0 32 0 r y . 8 8 8 8 4 24 0 16 16 16 16 0 0 None
0x29 24 tc 0 32 0 r . . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x2a 24 tc 0 32 0 r . . 8 8 8 8 4 24 0 16 16 16 16 0 0 None
0x2b 24 tc 0 32 0 r y . 8 8 8 0 4 16 0 16 16 16 16 0 0 None
0x2c 24 tc 0 32 0 r y . 8 8 8 8 4 16 0 16 16 16 16 0 0 None
0x2d 24 tc 0 32 0 r . . 8 8 8 0 4 16 0 16 16 16 16 0 0 None
0x2e 24 tc 0 32 0 r . . 8 8 8 8 4 16 0 16 16 16 16 0 0 None
0x2f 24 tc 0 32 0 r y . 8 8 8 0 4 0 0 16 16 16 16 0 0 None
0x30 24 tc 0 32 0 r y . 8 8 8 8 4 0 0 16 16 16 16 0 0 None
0x31 24 tc 0 32 0 r . . 8 8 8 0 4 0 0 16 16 16 16 0 0 None
0x32 24 tc 0 32 0 r . . 8 8 8 8 4 0 0 16 16 16 16 0 0 None
0x33 24 dc 0 32 0 r y . 8 8 8 8 4 24 8 16 16 16 16 0 0 None
0x34 24 dc 0 32 0 r . . 8 8 8 0 4 24 8 16 16 16 16 0 0 None
0x35 24 dc 0 32 0 r . . 8 8 8 8 4 24 8 16 16 16 16 0 0 None
0x36 24 dc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x37 24 dc 0 32 0 r y . 8 8 8 8 4 24 0 16 16 16 16 0 0 None
0x38 24 dc 0 32 0 r . . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x39 24 dc 0 32 0 r . . 8 8 8 8 4 24 0 16 16 16 16 0 0 None
0x3a 24 dc 0 32 0 r y . 8 8 8 0 4 16 0 16 16 16 16 0 0 None
0x3b 24 dc 0 32 0 r y . 8 8 8 8 4 16 0 16 16 16 16 0 0 None
0x3c 24 dc 0 32 0 r . . 8 8 8 0 4 16 0 16 16 16 16 0 0 None
0x3d 24 dc 0 32 0 r . . 8 8 8 8 4 16 0 16 16 16 16 0 0 None
0x3e 24 dc 0 32 0 r y . 8 8 8 0 4 0 0 16 16 16 16 0 0 None
0x3f 24 dc 0 32 0 r y . 8 8 8 8 4 0 0 16 16 16 16 0 0 None
0x40 24 dc 0 32 0 r . . 8 8 8 0 4 0 0 16 16 16 16 0 0 None
0x41 24 dc 0 32 0 r . . 8 8 8 8 4 0 0 16 16 16 16 0 0 None
0x23 32 tc 0 32 0 r y . 8 8 8 0 4 24 8 16 16 16 16 0 0 None
0x42 32 tc 0 32 0 r y . 8 8 8 8 4 24 8 16 16 16 16 0 0 None
0x43 32 tc 0 32 0 r . . 8 8 8 0 4 24 8 16 16 16 16 0 0 None
0x44 32 tc 0 32 0 r . . 8 8 8 8 4 24 8 16 16 16 16 0 0 None
0x45 32 tc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x46 32 tc 0 32 0 r y . 8 8 8 8 4 24 0 16 16 16 16 0 0 None
0x47 32 tc 0 32 0 r . . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x48 32 tc 0 32 0 r . . 8 8 8 8 4 24 0 16 16 16 16 0 0 None
0x49 32 tc 0 32 0 r y . 8 8 8 0 4 16 0 16 16 16 16 0 0 None
0x4a 32 tc 0 32 0 r y . 8 8 8 8 4 16 0 16 16 16 16 0 0 None
0x4b 32 tc 0 32 0 r . . 8 8 8 0 4 16 0 16 16 16 16 0 0 None
0x4c 32 tc 0 32 0 r . . 8 8 8 8 4 16 0 16 16 16 16 0 0 None
0x4d 32 tc 0 32 0 r y . 8 8 8 0 4 0 0 16 16 16 16 0 0 None
0x4e 32 tc 0 32 0 r y . 8 8 8 8 4 0 0 16 16 16 16 0 0 None
0x4f 32 tc 0 32 0 r . . 8 8 8 0 4 0 0 16 16 16 16 0 0 None
0x50 32 tc 0 32 0 r . . 8 8 8 8 4 0 0 16 16 16 16 0 0 None

55 GLXFBConfigs:
visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
----------------------------------------------------------------------
0x51 0 tc 0 32 0 r y . 8 8 8 0 4 24 8 16 16 16 16 0 0 None
0x52 0 dc 0 32 0 r y . 8 8 8 0 4 24 8 16 16 16 16 0 0 None
0x53 0 tc 0 32 0 r y . 8 8 8 8 4 24 8 16 16 16 16 0 0 None
0x54 0 dc 0 32 0 r y . 8 8 8 8 4 24 8 16 16 16 16 0 0 None
0x55 0 tc 0 32 0 r . . 8 8 8 0 4 24 8 16 16 16 16 0 0 None
0x56 0 dc 0 32 0 r . . 8 8 8 0 4 24 8 16 16 16 16 0 0 None
0x57 0 tc 0 32 0 r . . 8 8 8 8 4 24 8 16 16 16 16 0 0 None
0x58 0 dc 0 32 0 r . . 8 8 8 8 4 24 8 16 16 16 16 0 0 None
0x59 0 tc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x5a 0 dc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x5b 0 tc 0 32 0 r y . 8 8 8 8 4 24 0 16 16 16 16 0 0 None
0x5c 0 dc 0 32 0 r y . 8 8 8 8 4 24 0 16 16 16 16 0 0 None
0x5d 0 tc 0 32 0 r . . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x5e 0 dc 0 32 0 r . . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x5f 0 tc 0 32 0 r . . 8 8 8 8 4 24 0 16 16 16 16 0 0 None
0x60 0 dc 0 32 0 r . . 8 8 8 8 4 24 0 16 16 16 16 0 0 None
0x61 0 tc 0 32 0 r y . 8 8 8 0 4 16 0 16 16 16 16 0 0 None
0x62 0 dc 0 32 0 r y . 8 8 8 0 4 16 0 16 16 16 16 0 0 None
0x63 0 tc 0 32 0 r y . 8 8 8 8 4 16 0 16 16 16 16 0 0 None
0x64 0 dc 0 32 0 r y . 8 8 8 8 4 16 0 16 16 16 16 0 0 None
0x65 0 tc 0 32 0 r . . 8 8 8 0 4 16 0 16 16 16 16 0 0 None
0x66 0 dc 0 32 0 r . . 8 8 8 0 4 16 0 16 16 16 16 0 0 None
0x67 0 tc 0 32 0 r . . 8 8 8 8 4 16 0 16 16 16 16 0 0 None
0x68 0 dc 0 32 0 r . . 8 8 8 8 4 16 0 16 16 16 16 0 0 None
0x69 0 tc 0 32 0 r y . 8 8 8 0 4 0 0 16 16 16 16 0 0 None
0x6a 0 dc 0 32 0 r y . 8 8 8 0 4 0 0 16 16 16 16 0 0 None
0x6b 0 tc 0 32 0 r y . 8 8 8 8 4 0 0 16 16 16 16 0 0 None
0x6c 0 dc 0 32 0 r y . 8 8 8 8 4 0 0 16 16 16 16 0 0 None
0x6d 0 tc 0 32 0 r . . 8 8 8 0 4 0 0 16 16 16 16 0 0 None
0x6e 0 dc 0 32 0 r . . 8 8 8 0 4 0 0 16 16 16 16 0 0 None
0x6f 0 tc 0 32 0 r . . 8 8 8 8 4 0 0 16 16 16 16 0 0 None
0x70 0 dc 0 32 0 r . . 8 8 8 8 4 0 0 16 16 16 16 0 0 None
0x71 0 tc 0 32 0 r y . 8 8 8 0 4 24 8 16 16 16 16 0 0 None
0x72 0 tc 0 32 0 r y . 8 8 8 8 4 24 8 16 16 16 16 0 0 None
0x73 0 tc 0 32 0 r . . 8 8 8 0 4 24 8 16 16 16 16 0 0 None
0x74 0 tc 0 32 0 r . . 8 8 8 8 4 24 8 16 16 16 16 0 0 None
0x75 0 tc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x76 0 tc 0 32 0 r y . 8 8 8 8 4 24 0 16 16 16 16 0 0 None
0x77 0 tc 0 32 0 r . . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x78 0 tc 0 32 0 r . . 8 8 8 8 4 24 0 16 16 16 16 0 0 None
0x79 0 tc 0 32 0 r y . 8 8 8 0 4 16 0 16 16 16 16 0 0 None
0x7a 0 tc 0 32 0 r y . 8 8 8 8 4 16 0 16 16 16 16 0 0 None
0x7b 0 tc 0 32 0 r . . 8 8 8 0 4 16 0 16 16 16 16 0 0 None
0x7c 0 tc 0 32 0 r . . 8 8 8 8 4 16 0 16 16 16 16 0 0 None
0x7d 0 tc 0 32 0 r y . 8 8 8 0 4 0 0 16 16 16 16 0 0 None
0x7e 0 tc 0 32 0 r y . 8 8 8 8 4 0 0 16 16 16 16 0 0 None
0x7f 0 tc 0 32 0 r . . 8 8 8 0 4 0 0 16 16 16 16 0 0 None
0x80 0 tc 0 32 0 r . . 8 8 8 8 4 0 0 16 16 16 16 0 0 None
0x81 0 sg 0 16 0 r y . 5 6 5 0 4 16 0 16 16 16 16 0 0 None
0x82 0 sg 0 16 0 r . . 5 6 5 0 4 16 0 16 16 16 16 0 0 None
0x83 0 sg 0 16 0 r y . 5 6 5 0 4 0 0 16 16 16 16 0 0 None
0x84 0 sg 0 16 0 r . . 5 6 5 0 4 0 0 16 16 16 16 0 0 None
0x85 0 sg 0 0 0 r . . 0 0 0 0 4 16 0 16 16 16 16 0 0 None
0x86 0 sg 0 0 0 r . . 0 0 0 0 4 24 0 16 16 16 16 0 0 None
0x87 0 sg 0 0 0 r . . 0 0 0 0 4 24 8 16 16 16 16 0 0 None

lama@lamaz:~/Asztal/down/firefox$ glxinfo |grep -i shading
GL_ARB_shading_language_100, GL_ARB_texture_compression,
lama@lamaz:~/Asztal/down/firefox$


The firefox error message:


Canvas 3D: creating PBuffer...
nsGLPbufferGLX: gActiveBuffers: 1
CANVAS3D FBCONFIG: 0 (nil)
Canvas 3D: No GLXFBConfig found
nsGLPbufferOSMESA: gActiveBuffers: 1
Canvas 3D: Couldn't open OSMesa lib -- webgl.osmesalib path is incorrect, or not a valid shared library



So from two computer two failed at WebGL...

Laszlo

Coolcat
11-23-2009, 03:40 PM
OpenGL version string: 1.5.8 NVIDIA 96.43.13
That's far to old...

laszlo
11-24-2009, 12:26 AM
OpenGL version string: 1.5.8 NVIDIA 96.43.13
That's far to old...

"I installed nvidia-glx-96, because this is the latest driver, which support this card."

Maybe too old, but the laptop itself is only 3 years old. The intel one is brand new (ie. less than a year old).

Maybe intel is a better bet to get this working at all. As nvidia does not support "old" stuff.

lingo
11-24-2009, 07:59 PM
OpenGL renderer string: Mesa DRI Mobile Intel® GM45 Express Chipset GEM 20090326 2009Q1 RC2 x86/MMX/SSE2
OpenGL version string: 2.0 Mesa 7.4
OpenGL shading language version string: 1.10

That is an old driver. Try upgrade to 9.10, or try using ppa ubuntu x-updates. The new intel driver may support glsl > 1.10.

laszlo
11-25-2009, 01:57 AM
That is an old driver. Try upgrade to 9.10, or try using ppa ubuntu x-updates. The new intel driver may support glsl > 1.10.

yeah, I tried out ubuntu 9.10 with no luck, but didnt saved the glxinfo. I will try it out one more time, and post the glxinfo.

htns
11-27-2009, 02:38 AM
I have the same issue (can't find symbol activetexture) on 9.10 with mesa software rendering, gl version 2.1, glsl 1.2

my glxinfo:



name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: Brian Paul
server glx version string: 1.4 Mesa 7.7-devel
server glx extensions:
GLX_MESA_copy_sub_buffer, GLX_MESA_pixmap_colormap,
GLX_MESA_release_buffers, GLX_ARB_get_proc_address,
GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating,
GLX_SGIX_fbconfig, GLX_SGIX_pbuffer
client glx vendor string: Brian Paul
client glx version string: 1.4 Mesa 7.7-devel
client glx extensions:
GLX_MESA_copy_sub_buffer, GLX_MESA_pixmap_colormap,
GLX_MESA_release_buffers, GLX_ARB_get_proc_address,
GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating,
GLX_SGIX_fbconfig, GLX_SGIX_pbuffer
GLX version: 1.4
GLX extensions:
GLX_MESA_copy_sub_buffer, GLX_MESA_pixmap_colormap,
GLX_MESA_release_buffers, GLX_ARB_get_proc_address,
GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating,
GLX_SGIX_fbconfig, GLX_SGIX_pbuffer
OpenGL vendor string: Brian Paul
OpenGL renderer string: Mesa X11
OpenGL version string: 2.1 Mesa 7.7-devel
OpenGL shading language version string: 1.20
OpenGL extensions:
GL_ARB_copy_buffer, GL_ARB_depth_texture, GL_ARB_depth_clamp,
GL_ARB_draw_buffers, GL_ARB_draw_elements_base_vertex,
GL_ARB_fragment_program, GL_ARB_fragment_program_shadow,
GL_ARB_fragment_shader, GL_ARB_framebuffer_object,
GL_ARB_half_float_pixel, GL_ARB_imaging, GL_ARB_map_buffer_range,
GL_ARB_multisample, GL_ARB_multitexture, GL_ARB_occlusion_query,
GL_ARB_pixel_buffer_object, GL_ARB_point_parameters, GL_ARB_point_sprite,
GL_ARB_provoking_vertex, GL_ARB_shader_objects,
GL_ARB_shading_language_100, GL_ARB_shading_language_120, GL_ARB_shadow,
GL_ARB_shadow_ambient, GL_ARB_sync, GL_ARB_texture_border_clamp,
GL_ARB_texture_compression, GL_ARB_texture_cube_map,
GL_ARB_texture_env_add, GL_ARB_texture_env_combine,
GL_ARB_texture_env_crossbar, GL_ARB_texture_env_dot3,
GL_ARB_texture_mirrored_repeat, GL_ARB_texture_non_power_of_two,
GL_ARB_texture_rectangle, GL_ARB_transpose_matrix,
GL_ARB_vertex_array_bgra, GL_ARB_vertex_array_object,
GL_ARB_vertex_buffer_object, GL_ARB_vertex_program, GL_ARB_vertex_shader,
GL_ARB_window_pos, GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color,
GL_EXT_blend_equation_separate, GL_EXT_blend_func_separate,
GL_EXT_blend_logic_op, GL_EXT_blend_minmax, GL_EXT_blend_subtract,
GL_EXT_compiled_vertex_array, GL_EXT_convolution, GL_EXT_copy_texture,
GL_EXT_depth_bounds_test, GL_EXT_draw_range_elements,
GL_EXT_framebuffer_object, GL_EXT_framebuffer_blit, GL_EXT_fog_coord,
GL_EXT_gpu_program_parameters, GL_EXT_histogram, GL_EXT_multi_draw_arrays,
GL_EXT_packed_depth_stencil, GL_EXT_packed_pixels,
GL_EXT_paletted_texture, GL_EXT_pixel_buffer_object,
GL_EXT_point_parameters, GL_EXT_polygon_offset, GL_EXT_provoking_vertex,
GL_EXT_rescale_normal, GL_EXT_secondary_color,
GL_EXT_separate_specular_color, GL_EXT_shadow_funcs,
GL_EXT_shared_texture_palette, GL_EXT_stencil_two_side,
GL_EXT_stencil_wrap, GL_EXT_subtexture, GL_EXT_texture, GL_EXT_texture3D,
GL_EXT_texture_edge_clamp, GL_EXT_texture_env_add,
GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3,
GL_EXT_texture_lod_bias, GL_EXT_texture_mirror_clamp,
GL_EXT_texture_object, GL_EXT_texture_rectangle, GL_EXT_texture_sRGB,
GL_EXT_texture_swizzle, GL_EXT_timer_query, GL_EXT_vertex_array,
GL_EXT_vertex_array_bgra, GL_3DFX_texture_compression_FXT1,
GL_APPLE_packed_pixels, GL_APPLE_vertex_array_object,
GL_ATI_blend_equation_separate, GL_ATI_envmap_bumpmap,
GL_ATI_texture_env_combine3, GL_ATI_texture_mirror_once,
GL_ATI_fragment_shader, GL_ATI_separate_stencil,
GL_IBM_multimode_draw_arrays, GL_IBM_rasterpos_clip,
GL_IBM_texture_mirrored_repeat, GL_INGR_blend_func_separate,
GL_MESA_pack_invert, GL_MESA_resize_buffers, GL_MESA_texture_array,
GL_MESA_ycbcr_texture, GL_MESA_window_pos, GL_NV_blend_square,
GL_NV_depth_clamp, GL_NV_fragment_program, GL_NV_fragment_program_option,
GL_NV_light_max_exponent, GL_NV_point_sprite, GL_NV_texture_env_combine4,
GL_NV_texture_rectangle, GL_NV_texgen_reflection, GL_NV_vertex_program,
GL_NV_vertex_program1_1, GL_OES_read_format, GL_SGI_color_matrix,
GL_SGI_color_table, GL_SGI_texture_color_table, GL_SGIS_generate_mipmap,
GL_SGIS_texture_border_clamp, GL_SGIS_texture_edge_clamp,
GL_SGIS_texture_lod, GL_SUN_multi_draw_arrays

17 GLX Visuals
visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
----------------------------------------------------------------------
0x21 16 tc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x22 16 dc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x4e 16 tc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x4f 16 tc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x50 16 tc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x51 16 tc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x52 16 tc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x53 16 tc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x54 16 tc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x55 16 dc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x56 16 dc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x57 16 dc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x58 16 dc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x59 16 dc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x5a 16 dc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x5b 16 dc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x3d 32 tc 0 32 0 r y . 8 8 8 0 0 16 8 16 16 16 0 0 0 None

17 GLXFBConfigs:
visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
----------------------------------------------------------------------
0x21 0 tc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x22 0 dc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x4e 0 tc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x4f 0 tc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x50 0 tc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x51 0 tc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x52 0 tc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x53 0 tc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x54 0 tc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x55 0 dc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x56 0 dc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x57 0 dc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x58 0 dc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x59 0 dc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x5a 0 dc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x5b 0 dc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
0x3d 0 tc 0 32 0 r y . 8 8 8 0 0 16 8 16 16 16 16 0 0 None

ilmari
11-29-2009, 02:39 AM
I've been wrangling the Firefox WebGL Linux backend earlier this year. The drivers that I've tested on Linux are the ATI and Nvidia binary drivers. I remember getting OSMesa to work too at some point, but it was rather difficult, as it requires some specific version (the Windows webgl-mesa-751.zip seems to have 7.5.1, maybe that's it).

The situation with the open source drivers, older hardware and Intel drivers I don't know about, so this thread is good information. Another interesting thing would be to know if the WebGL-enabled Chromium Linux builds work when Firefox doesn't.

If WebGL doesn't work on your drivers, file a bug on the Firefox bugzilla at http://bugzilla.mozilla.org under Core->Canvas:WebGL. Sending a bug report to the driver developer would be good as well (possibly even more useful than filing it on bugzilla, as the driver devs can actually fix driver bugs).

Last time I touched the GLX backend was this spring, so my memory is a bit hazy...

Anyhow, the GLX backend is using pbuffers for drawing and glxChooseFBConfig for setting up the drawing context. The GLSL version isn't checked for, but a lot of the demos use 1.20, so 1.10 drivers won't work on those. Each WebGL canvas runs in its own GLX context.

If you can figure out how to run multiple GLX pbuffer contexts on your drivers (and creating and deleting them on the fly without crashing), that could be used to make Firefox WebGL work on the drivers. See test program at the end of this post.

ATI drivers required some hack workaround which isn't present in the current implementation. I don't know if it's still needed. With the workaround, it worked on a HD4850 and sort of on a Radeon 9600 (IIRC 9600 was missing a symbol and had some weird rendering bug). Recent Nvidia drivers (180.44) on my Geforce 7600 GS work fine.

[out-of-date] Bugzilla bug for the ATI workarounds: https://bugzilla.mozilla.org/show_bug.cgi?id=486277



/*
GLX test program for managing multiple pbuffer contexts.
If this doesn't segfault, Firefox WebGL might work too.

$ gcc -lGL -lX11 glx_pbuffer_test.c -o glx_pbuffer_test
$ ./glx_pbuffer_test
*/

#include <GL/glx.h>
#include <GL/gl.h>

int attrib[] = { GLX_DRAWABLE_TYPE, GLX_PBUFFER_BIT,
GLX_RENDER_TYPE, GLX_RGBA_BIT,
GLX_RED_SIZE, 1,
GLX_GREEN_SIZE, 1,
GLX_BLUE_SIZE, 1,
GLX_ALPHA_SIZE, 1,
GLX_DEPTH_SIZE, 1,
None
};

int pbuf_attrib[] = {
GLX_PBUFFER_WIDTH, 400,
GLX_PBUFFER_HEIGHT, 400,
None
};

struct Pctx {
Display *display;
GLXContext ctx;
GLXPbuffer pbuf;
};


struct Pctx makeCtx() {
int num;

struct Pctx pctx;

Display *display = XOpenDisplay(NULL);

GLXFBConfig *configs = glXChooseFBConfig(
display, DefaultScreen(display),
attrib, &num);
GLXFBConfig config = *configs;
GLXContext ctx = glXCreateNewContext(display, config, GLX_RGBA_TYPE, 0, 1);
XFree(configs);

GLXPbuffer pbuf = glXCreatePbuffer(display, config, attrib);
glXMakeContextCurrent(display, pbuf, pbuf, ctx);

pctx.display = display;
pctx.pbuf = pbuf;
pctx.ctx = ctx;

return pctx;
}

void destroyCtx (struct Pctx ctx) {
glXMakeContextCurrent(ctx.display, 0, 0, 0);
glXDestroyPbuffer(ctx.display, ctx.pbuf);
glXDestroyContext(ctx.display, ctx.ctx);
XCloseDisplay(ctx.display);
}

int main () {
struct Pctx c1, c2;
c1 = makeCtx();
c2 = makeCtx();
destroyCtx(c2);
glXMakeContextCurrent(c1.display, c1.pbuf, c1.pbuf, c1.ctx);

return 0;
}

Coolcat
11-29-2009, 03:05 AM
Another interesting thing would be to know if the WebGL-enabled Chromium Linux builds work when Firefox doesn't.
For me does Firefox work, but Chromium doesn't ;) However, this is probably a Fedora specific (known) problem.

ilmari
11-29-2009, 03:57 AM
I think I found the OSMesa bug. The Firefox GL wrapper lib looks for mglActiveTexture etc. when using OSMesa, but the OSMesa lib uses glActiveTexture. Making it check for glActiveTexture etc. made OSMesa work here.

ilmari
11-29-2009, 06:44 AM
Filed bug & patch, track at https://bugzilla.mozilla.org/show_bug.cgi?id=531612

kguciek
05-15-2010, 06:47 AM
Hi

If you don't want to recompile Minefield or wait for this patch to be accepted, you can just compile libOSMesa with changed names. I've put the instructions on my site (http://guciek.net/en/3d/osmesa_webgl).

Hope it's useful.