Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
e9c3f601
Commit
e9c3f601
authored
Feb 05, 2006
by
H. Verbeet
Committed by
Alexandre Julliard
Feb 05, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8: Use GL_EXTCALL to call OpenGL extension glPointParameterfvARB.
parent
172a9e1f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
d3dcore_gl.h
dlls/d3d8/d3dcore_gl.h
+13
-0
device.c
dlls/d3d8/device.c
+1
-1
No files found.
dlls/d3d8/d3dcore_gl.h
View file @
e9c3f601
...
...
@@ -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); \
...
...
dlls/d3d8/device.c
View file @
e9c3f601
...
...
@@ -3012,7 +3012,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_SetRenderState(LPDIRECT3DDEVICE8 iface, D3
}
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
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment