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
55e85807
Commit
55e85807
authored
Apr 19, 2003
by
Jason Edmeades
Committed by
Alexandre Julliard
Apr 19, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add DotProduct3 support if supported by opengl.
parent
2e9f3d84
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
d3d8_private.h
dlls/d3d8/d3d8_private.h
+1
-0
device.c
dlls/d3d8/device.c
+7
-3
directx.c
dlls/d3d8/directx.c
+4
-0
No files found.
dlls/d3d8/d3d8_private.h
View file @
55e85807
...
...
@@ -266,6 +266,7 @@ struct IDirect3DDevice8Impl
/* OpenGL Extension related */
BOOL
isMultiTexture
;
BOOL
isDot3
;
UINT
TextureUnits
;
UINT
clipPlanes
;
UINT
maxLights
;
...
...
dlls/d3d8/device.c
View file @
55e85807
...
...
@@ -3409,9 +3409,13 @@ HRESULT WINAPI IDirect3DDevice8Impl_SetTextureStageState(LPDIRECT3DDEVICE8 ifa
break
;
case
D3DTOP_DOTPRODUCT3
:
/*glTexEnvi(GL_TEXTURE_ENV, Parm, GL_DOT3_RGBA);
checkGLcall("glTexEnvi(GL_TEXTURE_ENV, comb_target, GL_DOT3_RGBA);");
break;*/
if
(
This
->
isDot3
)
{
glTexEnvi
(
GL_TEXTURE_ENV
,
Parm
,
GL_DOT3_RGBA
);
checkGLcall
(
"glTexEnvi(GL_TEXTURE_ENV, comb_target, GL_DOT3_RGBA);"
);
}
else
{
FIXME
(
"DotProduct3 extension requested but not supported via this version of opengl
\n
"
);
}
break
;
case
D3DTOP_SUBTRACT
:
/* glTexEnvi(GL_TEXTURE_ENV, Parm, GL_SUBTRACT); Missing? */
...
...
dlls/d3d8/directx.c
View file @
55e85807
...
...
@@ -573,6 +573,7 @@ HRESULT WINAPI IDirect3D8Impl_CreateDevice (LPDIRECT3D8 iface,
/* Initialize openGL extension related variables */
object
->
isMultiTexture
=
FALSE
;
object
->
isDot3
=
FALSE
;
object
->
TextureUnits
=
1
;
/* Retrieve opengl defaults */
...
...
@@ -607,6 +608,9 @@ HRESULT WINAPI IDirect3D8Impl_CreateDevice (LPDIRECT3D8 iface,
object
->
isMultiTexture
=
TRUE
;
object
->
TextureUnits
=
min
(
8
,
gl_max
);
TRACE
(
"FOUND: Multitexture support - GL_MAX_TEXTURE_UNITS_ARB=%d
\n
"
,
gl_max
);
}
else
if
(
strcmp
(
ThisExtn
,
"GL_EXT_texture_env_dot3"
)
==
0
)
{
object
->
isDot3
=
TRUE
;
TRACE
(
"FOUND: Dot3 support
\n
"
);
}
if
(
*
GL_Extensions
==
' '
)
GL_Extensions
++
;
...
...
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