glx: Allow float renderType in glXCreateContextAttribsARB
This enables GLX_RGBA_FLOAT_TYPE_ARB and GLX_RGBA_UNSIGNED_FLOAT_TYPE_EXT as valid renderType parameters to glXCreateContextAttribsARB. v2 (idr) : Use C-style comments and fix word wrapping. Re-write commit message. Signed-off-by: Daniel Czarnowski <daniel.czarnowski@intel.com> Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
7ecfab47eb
commit
eabb523aa4
|
@ -68,6 +68,8 @@ validate_render_type(uint32_t render_type)
|
||||||
switch (render_type) {
|
switch (render_type) {
|
||||||
case GLX_RGBA_TYPE:
|
case GLX_RGBA_TYPE:
|
||||||
case GLX_COLOR_INDEX_TYPE:
|
case GLX_COLOR_INDEX_TYPE:
|
||||||
|
case GLX_RGBA_FLOAT_TYPE_ARB:
|
||||||
|
case GLX_RGBA_UNSIGNED_FLOAT_TYPE_EXT:
|
||||||
return True;
|
return True;
|
||||||
default:
|
default:
|
||||||
return False;
|
return False;
|
||||||
|
|
16
glx/glxext.h
16
glx/glxext.h
|
@ -35,6 +35,22 @@
|
||||||
* Silicon Graphics, Inc.
|
* Silicon Graphics, Inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* doing #include <GL/glx.h> & #include <GL/glxext.h> could cause problems
|
||||||
|
* with overlapping definitions, so let's use the easy way
|
||||||
|
*/
|
||||||
|
#ifndef GLX_RGBA_FLOAT_BIT_ARB
|
||||||
|
#define GLX_RGBA_FLOAT_BIT_ARB 0x00000004
|
||||||
|
#endif
|
||||||
|
#ifndef GLX_RGBA_FLOAT_TYPE_ARB
|
||||||
|
#define GLX_RGBA_FLOAT_TYPE_ARB 0x20B9
|
||||||
|
#endif
|
||||||
|
#ifndef GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT
|
||||||
|
#define GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT 0x00000008
|
||||||
|
#endif
|
||||||
|
#ifndef GLX_RGBA_UNSIGNED_FLOAT_TYPE_EXT
|
||||||
|
#define GLX_RGBA_UNSIGNED_FLOAT_TYPE_EXT 0x20B1
|
||||||
|
#endif
|
||||||
|
|
||||||
extern GLboolean __glXFreeContext(__GLXcontext * glxc);
|
extern GLboolean __glXFreeContext(__GLXcontext * glxc);
|
||||||
extern void __glXFlushContextCache(void);
|
extern void __glXFlushContextCache(void);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue