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
e82eef28
Commit
e82eef28
authored
Jan 23, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Take EXT_vertex_array_bgra into account in send_attribute() and loadNumberedArrays().
parent
2ce82aec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
drawprim.c
dlls/wined3d/drawprim.c
+11
-1
state.c
dlls/wined3d/state.c
+11
-1
No files found.
dlls/wined3d/drawprim.c
View file @
e82eef28
...
@@ -534,8 +534,18 @@ static inline void send_attribute(IWineD3DDeviceImpl *This, const DWORD type, co
...
@@ -534,8 +534,18 @@ static inline void send_attribute(IWineD3DDeviceImpl *This, const DWORD type, co
case
WINED3DDECLTYPE_UBYTE4
:
case
WINED3DDECLTYPE_UBYTE4
:
GL_EXTCALL
(
glVertexAttrib4ubvARB
(
index
,
ptr
));
GL_EXTCALL
(
glVertexAttrib4ubvARB
(
index
,
ptr
));
break
;
break
;
case
WINED3DDECLTYPE_UBYTE4N
:
case
WINED3DDECLTYPE_D3DCOLOR
:
case
WINED3DDECLTYPE_D3DCOLOR
:
if
(
GL_SUPPORT
(
EXT_VERTEX_ARRAY_BGRA
))
{
const
DWORD
*
src
=
ptr
;
DWORD
c
=
*
src
&
0xff00ff00
;
c
|=
(
*
src
&
0xff0000
)
>>
16
;
c
|=
(
*
src
&
0xff
)
<<
16
;
GL_EXTCALL
(
glVertexAttrib4NubvARB
(
index
,
(
GLubyte
*
)
&
c
));
break
;
}
/* else fallthrough */
case
WINED3DDECLTYPE_UBYTE4N
:
GL_EXTCALL
(
glVertexAttrib4NubvARB
(
index
,
ptr
));
GL_EXTCALL
(
glVertexAttrib4NubvARB
(
index
,
ptr
));
break
;
break
;
...
...
dlls/wined3d/state.c
View file @
e82eef28
...
@@ -3925,8 +3925,18 @@ static inline void loadNumberedArrays(IWineD3DStateBlockImpl *stateblock,
...
@@ -3925,8 +3925,18 @@ static inline void loadNumberedArrays(IWineD3DStateBlockImpl *stateblock,
case
WINED3DDECLTYPE_UBYTE4
:
case
WINED3DDECLTYPE_UBYTE4
:
GL_EXTCALL
(
glVertexAttrib4NubvARB
(
i
,
ptr
));
GL_EXTCALL
(
glVertexAttrib4NubvARB
(
i
,
ptr
));
break
;
break
;
case
WINED3DDECLTYPE_UBYTE4N
:
case
WINED3DDECLTYPE_D3DCOLOR
:
case
WINED3DDECLTYPE_D3DCOLOR
:
if
(
GL_SUPPORT
(
EXT_VERTEX_ARRAY_BGRA
))
{
const
DWORD
*
src
=
(
const
DWORD
*
)
ptr
;
DWORD
c
=
*
src
&
0xff00ff00
;
c
|=
(
*
src
&
0xff0000
)
>>
16
;
c
|=
(
*
src
&
0xff
)
<<
16
;
GL_EXTCALL
(
glVertexAttrib4NubvARB
(
i
,
(
GLubyte
*
)
&
c
));
break
;
}
/* else fallthrough */
case
WINED3DDECLTYPE_UBYTE4N
:
GL_EXTCALL
(
glVertexAttrib4NubvARB
(
i
,
ptr
));
GL_EXTCALL
(
glVertexAttrib4NubvARB
(
i
,
ptr
));
break
;
break
;
...
...
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