Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
915e0ef0
Commit
915e0ef0
authored
Jan 20, 2015
by
Matteo Bruni
Committed by
Alexandre Julliard
Jan 20, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Always use the core version of the glPointParameteri function.
The state function depends on GL 2.0+ so it's unnecessary to check for NV_POINT_SPRITE.
parent
aff0c389
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
9 deletions
+4
-9
directx.c
dlls/wined3d/directx.c
+2
-4
state.c
dlls/wined3d/state.c
+2
-5
No files found.
dlls/wined3d/directx.c
View file @
915e0ef0
...
...
@@ -2848,9 +2848,7 @@ static void load_gl_funcs(struct wined3d_gl_info *gl_info)
USE_GL_FUNC
(
glVertexWeighthNV
)
USE_GL_FUNC
(
glVertexWeighthvNV
)
/* GL_NV_point_sprite */
USE_GL_FUNC
(
glPointParameteri
)
USE_GL_FUNC
(
glPointParameteriNV
)
USE_GL_FUNC
(
glPointParameteriv
)
USE_GL_FUNC
(
glPointParameterivNV
)
/* GL_NV_register_combiners */
USE_GL_FUNC
(
glCombinerInputNV
)
...
...
@@ -2889,6 +2887,8 @@ static void load_gl_funcs(struct wined3d_gl_info *gl_info)
USE_GL_FUNC
(
glGetBufferSubData
)
/* OpenGL 1.5 */
USE_GL_FUNC
(
glGetCompressedTexImage
)
/* OpenGL 1.3 */
USE_GL_FUNC
(
glMapBuffer
)
/* OpenGL 1.5 */
USE_GL_FUNC
(
glPointParameteri
)
/* OpenGL 1.4 */
USE_GL_FUNC
(
glPointParameteriv
)
/* OpenGL 1.4 */
USE_GL_FUNC
(
glUnmapBuffer
)
/* OpenGL 1.5 */
#undef USE_GL_FUNC
...
...
@@ -3253,8 +3253,6 @@ static BOOL wined3d_adapter_init_gl_caps(struct wined3d_adapter *adapter)
if
(
!
gl_info
->
supported
[
NV_POINT_SPRITE
]
&&
gl_version
>=
MAKEDWORD_VERSION
(
1
,
4
))
{
TRACE
(
"GL CORE: GL_NV_point_sprite support.
\n
"
);
gl_info
->
gl_ops
.
ext
.
p_glPointParameterivNV
=
gl_info
->
gl_ops
.
ext
.
p_glPointParameteriv
;
gl_info
->
gl_ops
.
ext
.
p_glPointParameteriNV
=
gl_info
->
gl_ops
.
ext
.
p_glPointParameteri
;
gl_info
->
supported
[
NV_POINT_SPRITE
]
=
TRUE
;
}
...
...
dlls/wined3d/state.c
View file @
915e0ef0
...
...
@@ -5010,11 +5010,8 @@ static void psorigin(struct wined3d_context *context, const struct wined3d_state
const
struct
wined3d_gl_info
*
gl_info
=
context
->
gl_info
;
GLint
origin
=
context
->
render_offscreen
?
GL_LOWER_LEFT
:
GL_UPPER_LEFT
;
if
(
gl_info
->
supported
[
NV_POINT_SPRITE
])
{
GL_EXTCALL
(
glPointParameteriNV
(
GL_POINT_SPRITE_COORD_ORIGIN
,
origin
));
checkGLcall
(
"glPointParameteriNV(GL_POINT_SPRITE_COORD_ORIGIN, ...)"
);
}
GL_EXTCALL
(
glPointParameteri
(
GL_POINT_SPRITE_COORD_ORIGIN
,
origin
));
checkGLcall
(
"glPointParameteri(GL_POINT_SPRITE_COORD_ORIGIN, ...)"
);
}
void
state_srgbwrite
(
struct
wined3d_context
*
context
,
const
struct
wined3d_state
*
state
,
DWORD
state_id
)
...
...
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