d3d8: Add detection for GL_ARB_point_sprite support.

This commit is contained in:
H. Verbeet 2006-01-23 11:24:27 +01:00 committed by Alexandre Julliard
parent e383143f18
commit 76319f7c8d
2 changed files with 4 additions and 0 deletions

View File

@ -656,6 +656,7 @@ typedef enum _GL_SupportedExt {
ARB_MULTISAMPLE, ARB_MULTISAMPLE,
ARB_MULTITEXTURE, ARB_MULTITEXTURE,
ARB_POINT_PARAMETERS, ARB_POINT_PARAMETERS,
ARB_POINT_SPRITE,
ARB_TEXTURE_COMPRESSION, ARB_TEXTURE_COMPRESSION,
ARB_TEXTURE_CUBE_MAP, ARB_TEXTURE_CUBE_MAP,
ARB_TEXTURE_ENV_ADD, ARB_TEXTURE_ENV_ADD,

View File

@ -398,6 +398,9 @@ static void IDirect3D8Impl_FillGLCaps(LPDIRECT3D8 iface, Display* display) {
TRACE_(d3d_caps)(" FOUND: ARB Multitexture support - GL_MAX_TEXTURE_UNITS_ARB=%u\n", gl_max); TRACE_(d3d_caps)(" FOUND: ARB Multitexture support - GL_MAX_TEXTURE_UNITS_ARB=%u\n", gl_max);
This->gl_info.supported[ARB_MULTITEXTURE] = TRUE; This->gl_info.supported[ARB_MULTITEXTURE] = TRUE;
This->gl_info.max_textures = min(8, gl_max); This->gl_info.max_textures = min(8, gl_max);
} else if (strcmp(ThisExtn, "GL_ARB_point_sprite") == 0) {
TRACE_(d3d_caps)(" FOUND: ARB Point sprite support\n");
This->gl_info.supported[ARB_POINT_SPRITE] = TRUE;
} else if (strcmp(ThisExtn, "GL_ARB_texture_cube_map") == 0) { } else if (strcmp(ThisExtn, "GL_ARB_texture_cube_map") == 0) {
TRACE_(d3d_caps)(" FOUND: ARB Texture Cube Map support\n"); TRACE_(d3d_caps)(" FOUND: ARB Texture Cube Map support\n");
This->gl_info.supported[ARB_TEXTURE_CUBE_MAP] = TRUE; This->gl_info.supported[ARB_TEXTURE_CUBE_MAP] = TRUE;