Textures: Why no GL_REPLACE in RH7.1?

I have recently installed RedHat 7.1, with XFree86 4.03.

When I user texture mapping with GL_REPLACE I get an error message “Invalid value”. The same applies for GL_REPLACE_EXT.

Any suggestions why this feature has not been implemented ? It does exist in the utah-glx and SGI implementations.

Adrian

GL_REPLACE_EXT is in glext.h

As for GL_REPLACE, it lives in /usr/X11R6/include/GL/gl.h for me. I’m using a stock XFree86 installation.

Sure you’re including the right header files?

Thank you.
GL_REPLACE is in gl.h and
GL_REPLACE_EXT is in glext.h

Both are not listed in the texture mapping sections.
The command: glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE);
compiles without a problem, but at run time reports that an invalid value is being passed. If I switch REPLACE to
MODULATE then the program works ok, but with slightly diffferent functionality.

Any further suggestions ?
Has MESA deviated from OpenGL slightly ?
Is there an official MESA man page somewhere ?

Adrian

Oh, sorry, I misunderstood your original question.

I don’t know why it would say “Illegal value”… but the Mesa page is http://www.mesa3d.org/

hmm you might have to uodate your mesa, check if your mesa implementation is Opengl1.21 if not GL_REPLACE is not supoorted.

Chris

Are you refering to the Mesa version (3.4.1) or the glx version (1.2).

Why is this no longer supported ?

I am porting code from a SGI-O2 which uses GL_REPLACE, what is the approved replacement…

Here are my glxinfo details…
[…]$ glxinfo

display: :0.0 screen:0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
client glx vendor string: SGI
client glx version string: 1.2
client glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context,
GLX_ARB_get_proc_address
GLX extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
OpenGL vendor string: Precision Insight, Inc.
OpenGL renderer string: Mesa DRI G400 20000510
OpenGL version string: 1.2 Mesa 3.4
OpenGL extensions:
GL_ARB_multitexture, GL_ARB_tranpose_matrix, GL_EXT_abgr,
GL_EXT_blend_func_separate, GL_EXT_clip_volume_hint,
GL_EXT_compiled_vertex_array, GL_EXT_histogram, GL_EXT_packed_pixels,
GL_EXT_polygon_offset, GL_EXT_rescale_normal, GL_EXT_stencil_wrap,
GL_EXT_texture3D, GL_EXT_texture_env_add, GL_EXT_texture_object,
GL_EXT_vertex_array, GL_MESA_window_pos, GL_MESA_resize_buffers,
GL_NV_texgen_reflection, GL_PGI_misc_hints, GL_SGIS_pixel_texture,
GL_SGIS_texture_edge_clamp
glu version: 1.1 Mesa 3.4.1
glu extensions:
GL_EXT_abgr

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

0x23 16 tc 0 16 0 r y . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
0x24 16 tc 0 16 0 r . . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
0x25 16 tc 0 16 0 r y . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
0x26 16 tc 0 16 0 r . . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
0x27 16 tc 0 16 0 r y . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
0x28 16 tc 0 16 0 r . . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
0x29 16 tc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
0x2a 16 tc 0 16 0 r . . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
0x2b 16 dc 0 16 0 r y . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
0x2c 16 dc 0 16 0 r . . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
0x2d 16 dc 0 16 0 r y . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
0x2e 16 dc 0 16 0 r . . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
0x2f 16 dc 0 16 0 r y . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
0x30 16 dc 0 16 0 r . . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
0x31 16 dc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
0x32 16 dc 0 16 0 r . . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow

I belive that it is an error in the driver. Try the latest driver instead.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.