Module: wine Branch: refs/heads/master Commit: 76319f7c8daf5bd59991042916482144fea8e794 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=76319f7c8daf5bd599910429...
Author: H. Verbeet hverbeet@gmail.com Date: Mon Jan 23 11:24:27 2006 +0100
d3d8: Add detection for GL_ARB_point_sprite support.
---
dlls/d3d8/d3dcore_gl.h | 1 + dlls/d3d8/directx.c | 3 +++ 2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/d3d8/d3dcore_gl.h b/dlls/d3d8/d3dcore_gl.h index 173ee74..6bacc5f 100644 --- a/dlls/d3d8/d3dcore_gl.h +++ b/dlls/d3d8/d3dcore_gl.h @@ -656,6 +656,7 @@ typedef enum _GL_SupportedExt { ARB_MULTISAMPLE, ARB_MULTITEXTURE, ARB_POINT_PARAMETERS, + ARB_POINT_SPRITE, ARB_TEXTURE_COMPRESSION, ARB_TEXTURE_CUBE_MAP, ARB_TEXTURE_ENV_ADD, diff --git a/dlls/d3d8/directx.c b/dlls/d3d8/directx.c index 9454aa8..a324855 100644 --- a/dlls/d3d8/directx.c +++ b/dlls/d3d8/directx.c @@ -398,6 +398,9 @@ static void IDirect3D8Impl_FillGLCaps(LP 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.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) { TRACE_(d3d_caps)(" FOUND: ARB Texture Cube Map support\n"); This->gl_info.supported[ARB_TEXTURE_CUBE_MAP] = TRUE;