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
7a1d35e5
Commit
7a1d35e5
authored
Dec 17, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Dec 19, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Emulate half float vertices if GL_NV_half_float is not there.
parent
7e9af243
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
0 deletions
+10
-0
drawprim.c
dlls/wined3d/drawprim.c
+0
-0
state.c
dlls/wined3d/state.c
+6
-0
vertexdeclaration.c
dlls/wined3d/vertexdeclaration.c
+3
-0
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-0
No files found.
dlls/wined3d/drawprim.c
View file @
7a1d35e5
This diff is collapsed.
Click to expand it.
dlls/wined3d/state.c
View file @
7a1d35e5
...
...
@@ -2884,6 +2884,11 @@ static inline void loadNumberedArrays(IWineD3DStateBlockImpl *stateblock, WineDi
/* Default to no instancing */
stateblock
->
wineD3DDevice
->
instancedDraw
=
FALSE
;
if
(((
IWineD3DVertexDeclarationImpl
*
)
stateblock
->
vertexDecl
)
->
half_float_used
&&
!
GL_SUPPORT
(
NV_HALF_FLOAT
))
{
/* This will be handled using drawStridedSlow */
return
;
}
for
(
i
=
0
;
i
<
MAX_ATTRIBS
;
i
++
)
{
if
(
!
strided
->
u
.
input
[
i
].
lpData
&&
!
strided
->
u
.
input
[
i
].
VBO
)
...
...
@@ -2997,6 +3002,7 @@ static inline void loadNumberedArrays(IWineD3DStateBlockImpl *stateblock, WineDi
}
}
}
checkGLcall
(
"Loading numbered arrays"
);
}
/* Used from 2 different functions, and too big to justify making it inlined */
...
...
dlls/wined3d/vertexdeclaration.c
View file @
7a1d35e5
...
...
@@ -183,6 +183,9 @@ static HRESULT WINAPI IWineD3DVertexDeclarationImpl_SetDeclaration(IWineD3DVerte
This
->
swizzled_attribs
[
j
].
usage
=
This
->
pDeclarationWine
[
i
].
Usage
;
This
->
swizzled_attribs
[
j
].
idx
=
This
->
pDeclarationWine
[
i
].
UsageIndex
;
This
->
num_swizzled_attribs
++
;
}
else
if
(
This
->
pDeclarationWine
[
i
].
Type
==
WINED3DDECLTYPE_FLOAT16_2
||
This
->
pDeclarationWine
[
i
].
Type
==
WINED3DDECLTYPE_FLOAT16_4
)
{
This
->
half_float_used
=
TRUE
;
}
}
...
...
dlls/wined3d/wined3d_private.h
View file @
7a1d35e5
...
...
@@ -1268,6 +1268,7 @@ typedef struct IWineD3DVertexDeclarationImpl {
DWORD
streams
[
MAX_STREAMS
];
UINT
num_streams
;
BOOL
position_transformed
;
BOOL
half_float_used
;
/* Ordered array of declaration types that need swizzling in a vshader */
attrib_declaration
swizzled_attribs
[
MAX_ATTRIBS
];
...
...
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