H. Verbeet : d3d8: Use GL_EXTCALL to call OpenGL extension glPointParameterfvARB.

Alexandre Julliard julliard at wine.codeweavers.com
Sun Feb 5 06:52:40 CST 2006


Module: wine
Branch: refs/heads/master
Commit: e9c3f601ea5c409f819f0a1c5ff2de4c304242f7
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=e9c3f601ea5c409f819f0a1c5ff2de4c304242f7

Author: H. Verbeet <hverbeet at gmail.com>
Date:   Sun Feb  5 12:19:13 2006 +0100

d3d8: Use GL_EXTCALL to call OpenGL extension glPointParameterfvARB.

---

 dlls/d3d8/d3dcore_gl.h |   13 +++++++++++++
 dlls/d3d8/device.c     |    2 +-
 2 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/dlls/d3d8/d3dcore_gl.h b/dlls/d3d8/d3dcore_gl.h
index 31d72ae..9fa8cd9 100644
--- a/dlls/d3d8/d3dcore_gl.h
+++ b/dlls/d3d8/d3dcore_gl.h
@@ -30,6 +30,16 @@
  *  defines and functions pointer
  */
 
+/* GL_ARB_point_parameters */
+#ifndef GL_ARB_point_parameters
+#define GL_ARB_point_parameters 1
+#define GL_POINT_SIZE_MIN_ARB             0x8126
+#define GL_POINT_SIZE_MAX_ARB             0x8127
+#define GL_POINT_FADE_THRESHOLD_SIZE_ARB  0x8128
+#define GL_POINT_DISTANCE_ATTENUATION_ARB 0x8129
+#endif
+typedef void (APIENTRY * PGLFNGLPOINTPARAMETERFARBPROC) (GLenum pname, GLfloat param);
+typedef void (APIENTRY * PGLFNGLPOINTPARAMETERFVARBPROC) (GLenum pname, const GLfloat *params);
 /* GL_ARB_vertex_blend */
 #ifndef GL_ARB_vertex_blend
 #define GL_ARB_vertex_blend 1
@@ -757,6 +767,9 @@ typedef enum _GL_PSVersion {
 
 #define GL_EXT_FUNCS_GEN \
     /** ARB Extensions **/ \
+    /* GL_ARB_point_parameters */ \
+    USE_GL_FUNC(PGLFNGLPOINTPARAMETERFARBPROC,       glPointParameterfARB); \
+    USE_GL_FUNC(PGLFNGLPOINTPARAMETERFVARBPROC,      glPointParameterfvARB); \
     /* GL_ARB_texture_compression */ \
     USE_GL_FUNC(PGLFNCOMPRESSEDTEXIMAGE2DPROC,       glCompressedTexImage2DARB); \
     USE_GL_FUNC(PGLFNCOMPRESSEDTEXIMAGE3DPROC,       glCompressedTexImage3DARB); \
diff --git a/dlls/d3d8/device.c b/dlls/d3d8/device.c
index d1f7657..6710164 100644
--- a/dlls/d3d8/device.c
+++ b/dlls/d3d8/device.c
@@ -3012,7 +3012,7 @@ HRESULT  WINAPI  IDirect3DDevice8Impl_Se
         }
 
         if(GL_SUPPORT(ARB_POINT_PARAMETERS)) {
-            glPointParameterfvARB(GL_POINT_DISTANCE_ATTENUATION_ARB, att);
+            GL_EXTCALL(glPointParameterfvARB)(GL_POINT_DISTANCE_ATTENUATION_ARB, att);
             checkGLcall("glPointParameterfvARB(GL_DISTANCE_ATTENUATION_ARB, ...");
         }
         else if(GL_SUPPORT(EXT_POINT_PARAMETERS)) {




More information about the wine-cvs mailing list