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
07f4f704
Commit
07f4f704
authored
Apr 25, 2006
by
Ivan Gyurdiev
Committed by
Alexandre Julliard
May 05, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: QueryInterface corrections.
parent
8414777c
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
81 additions
and
19 deletions
+81
-19
basetexture.c
dlls/wined3d/basetexture.c
+2
-1
cubetexture.c
dlls/wined3d/cubetexture.c
+2
-1
device.c
dlls/wined3d/device.c
+2
-2
directx.c
dlls/wined3d/directx.c
+2
-2
drawprim.c
dlls/wined3d/drawprim.c
+40
-0
indexbuffer.c
dlls/wined3d/indexbuffer.c
+2
-1
palette.c
dlls/wined3d/palette.c
+1
-0
pixelshader.c
dlls/wined3d/pixelshader.c
+2
-1
query.c
dlls/wined3d/query.c
+2
-1
resource.c
dlls/wined3d/resource.c
+2
-1
stateblock.c
dlls/wined3d/stateblock.c
+2
-1
surface.c
dlls/wined3d/surface.c
+6
-2
swapchain.c
dlls/wined3d/swapchain.c
+1
-0
texture.c
dlls/wined3d/texture.c
+1
-0
vertexbuffer.c
dlls/wined3d/vertexbuffer.c
+2
-1
vertexdeclaration.c
dlls/wined3d/vertexdeclaration.c
+2
-1
vertexshader.c
dlls/wined3d/vertexshader.c
+2
-1
volume.c
dlls/wined3d/volume.c
+6
-2
volumetexture.c
dlls/wined3d/volumetexture.c
+2
-1
No files found.
dlls/wined3d/basetexture.c
View file @
07f4f704
...
...
@@ -68,8 +68,9 @@ HRESULT WINAPI IWineD3DBaseTextureImpl_QueryInterface(IWineD3DBaseTexture *iface
||
IsEqualGUID
(
riid
,
&
IID_IWineD3DBaseTexture
))
{
IUnknown_AddRef
(
iface
);
*
ppobj
=
This
;
return
WINED3D
_OK
;
return
S
_OK
;
}
*
ppobj
=
NULL
;
return
E_NOINTERFACE
;
}
...
...
dlls/wined3d/cubetexture.c
View file @
07f4f704
...
...
@@ -58,8 +58,9 @@ HRESULT WINAPI IWineD3DCubeTextureImpl_QueryInterface(IWineD3DCubeTexture *iface
||
IsEqualGUID
(
riid
,
&
IID_IWineD3DTexture
))
{
IUnknown_AddRef
(
iface
);
*
ppobj
=
This
;
return
WINED3D
_OK
;
return
S
_OK
;
}
*
ppobj
=
NULL
;
return
E_NOINTERFACE
;
}
...
...
dlls/wined3d/device.c
View file @
07f4f704
...
...
@@ -341,9 +341,9 @@ HRESULT WINAPI IWineD3DDeviceImpl_QueryInterface(IWineD3DDevice *iface,REFIID ri
||
IsEqualGUID
(
riid
,
&
IID_IWineD3DDevice
))
{
IUnknown_AddRef
(
iface
);
*
ppobj
=
This
;
return
WINED3D
_OK
;
return
S
_OK
;
}
*
ppobj
=
NULL
;
return
E_NOINTERFACE
;
}
...
...
dlls/wined3d/directx.c
View file @
07f4f704
...
...
@@ -173,9 +173,9 @@ HRESULT WINAPI IWineD3DImpl_QueryInterface(IWineD3D *iface,REFIID riid,LPVOID *p
||
IsEqualGUID
(
riid
,
&
IID_IWineD3DDevice
))
{
IUnknown_AddRef
(
iface
);
*
ppobj
=
This
;
return
WINED3D
_OK
;
return
S
_OK
;
}
*
ppobj
=
NULL
;
return
E_NOINTERFACE
;
}
...
...
dlls/wined3d/drawprim.c
View file @
07f4f704
...
...
@@ -2110,6 +2110,33 @@ void drawPrimitive(IWineD3DDevice *iface,
}
#endif /* TODO: vertex and pixel shaders */
#if 0 /* TODO: vertex and pixel shaders */
/* If we will be using a pixel, do some initialization for it */
if ((pixel_shader = PIXEL_SHADER(This->stateBlock->PixelShader))) {
TRACE("drawing with pixel shader handle %p\n", pixel_shader);
memset(&pixel_shader->input, 0, sizeof(PSHADERINPUTDATA8));
GL_EXTCALL(glBindProgramARB(GL_FRAGMENT_PROGRAM_ARB, pixel_shader->prgId));
checkGLcall("glBindProgramARB(GL_FRAGMENT_PROGRAM_ARB, pixel_shader->prgId);");
glEnable(GL_FRAGMENT_PROGRAM_ARB);
checkGLcall("glEnable(GL_FRAGMENT_PROGRAM_ARB);");
/* init Constants */
if (This->stateBlock->Changed.pixelShaderConstant) {
TRACE_(d3d_shader)("pixel shader initializing constants %p\n",pixel_shader);
IDirect3DPixelShaderImpl_SetConstantF(pixel_shader, 0, (CONST FLOAT*)
&This->stateBlock->pixelShaderConstant[0], 8);
}
/* Update the constants */
for (i = 0; i < D3D8_PSHADER_MAX_CONSTANTS; ++i) {
GL_EXTCALL(glProgramEnvParameter4fvARB(GL_FRAGMENT_PROGRAM_ARB, i,
(GLfloat *)&This->stateBlock->pixelShaderConstant[i]));
checkGLcall("glProgramEnvParameter4fvARB(GL_FRAGMENT_PROGRAM_ARB");
}
}
#endif /* TODO: vertex and pixel shaders */
/* Initialize all values to null */
memset
(
&
dataLocations
,
0x00
,
sizeof
(
dataLocations
));
/* convert the FVF or vertexDeclaration into a strided stream (this should be done when the fvf or declaration is created) */
...
...
@@ -2184,6 +2211,19 @@ void drawPrimitive(IWineD3DDevice *iface,
}
#endif
#if 0 /* TODO: vertex and pixel shaders */
if (pixel_shader)
{
#if 0
GLint errPos;
glGetIntegerv( GL_PROGRAM_ERROR_POSITION_ARB, &errPos );
if (errPos != -1)
FIXME("HW PixelShader Error at position: %d\n%s\n", errPos, glGetString( GL_PROGRAM_ERROR_STRING_ARB) );
#endif
glDisable(GL_FRAGMENT_PROGRAM_ARB);
}
#endif
/* Finshed updating the screen, restore lock */
LEAVE_GL
();
TRACE
(
"Done all gl drawing
\n
"
);
...
...
dlls/wined3d/indexbuffer.c
View file @
07f4f704
...
...
@@ -40,8 +40,9 @@ HRESULT WINAPI IWineD3DIndexBufferImpl_QueryInterface(IWineD3DIndexBuffer *iface
||
IsEqualGUID
(
riid
,
&
IID_IWineD3DIndexBuffer
)){
IUnknown_AddRef
(
iface
);
*
ppobj
=
This
;
return
WINED3D
_OK
;
return
S
_OK
;
}
*
ppobj
=
NULL
;
return
E_NOINTERFACE
;
}
...
...
dlls/wined3d/palette.c
View file @
07f4f704
...
...
@@ -42,6 +42,7 @@ HRESULT WINAPI IWineD3DPaletteImpl_QueryInterface(IWineD3DPalette *iface, REFIID
return
S_OK
;
}
else
{
*
obj
=
NULL
;
return
E_NOINTERFACE
;
}
}
...
...
dlls/wined3d/pixelshader.c
View file @
07f4f704
...
...
@@ -54,8 +54,9 @@ HRESULT WINAPI IWineD3DPixelShaderImpl_QueryInterface(IWineD3DPixelShader *iface
||
IsEqualGUID
(
riid
,
&
IID_IWineD3DPixelShader
))
{
IUnknown_AddRef
(
iface
);
*
ppobj
=
This
;
return
WINED3D
_OK
;
return
S
_OK
;
}
*
ppobj
=
NULL
;
return
E_NOINTERFACE
;
}
...
...
dlls/wined3d/query.c
View file @
07f4f704
...
...
@@ -42,8 +42,9 @@ HRESULT WINAPI IWineD3DQueryImpl_QueryInterface(IWineD3DQuery *iface, REFIID rii
||
IsEqualGUID
(
riid
,
&
IID_IWineD3DQuery
))
{
IUnknown_AddRef
(
iface
);
*
ppobj
=
This
;
return
WINED3D
_OK
;
return
S
_OK
;
}
*
ppobj
=
NULL
;
return
E_NOINTERFACE
;
}
...
...
dlls/wined3d/resource.c
View file @
07f4f704
...
...
@@ -37,8 +37,9 @@ HRESULT WINAPI IWineD3DResourceImpl_QueryInterface(IWineD3DResource *iface, REFI
||
IsEqualGUID
(
riid
,
&
IID_IWineD3DResource
))
{
IUnknown_AddRef
(
iface
);
*
ppobj
=
This
;
return
WINED3D
_OK
;
return
S
_OK
;
}
*
ppobj
=
NULL
;
return
E_NOINTERFACE
;
}
...
...
dlls/wined3d/stateblock.c
View file @
07f4f704
...
...
@@ -38,8 +38,9 @@ HRESULT WINAPI IWineD3DStateBlockImpl_QueryInterface(IWineD3DStateBlock *iface,R
||
IsEqualGUID
(
riid
,
&
IID_IWineD3DStateBlock
)){
IUnknown_AddRef
(
iface
);
*
ppobj
=
This
;
return
WINED3D
_OK
;
return
S
_OK
;
}
*
ppobj
=
NULL
;
return
E_NOINTERFACE
;
}
...
...
dlls/wined3d/surface.c
View file @
07f4f704
...
...
@@ -45,8 +45,9 @@ HRESULT WINAPI IWineD3DSurfaceImpl_QueryInterface(IWineD3DSurface *iface, REFIID
||
IsEqualGUID
(
riid
,
&
IID_IWineD3DSurface
))
{
IUnknown_AddRef
((
IUnknown
*
)
iface
);
*
ppobj
=
This
;
return
WINED3D
_OK
;
return
S
_OK
;
}
*
ppobj
=
NULL
;
return
E_NOINTERFACE
;
}
...
...
@@ -218,7 +219,10 @@ HRESULT WINAPI IWineD3DSurfaceImpl_GetContainer(IWineD3DSurface* iface, REFIID r
}
TRACE
(
"Relaying to QueryInterface
\n
"
);
return
IUnknown_QueryInterface
(
container
,
riid
,
ppContainer
);
if
(
IUnknown_QueryInterface
(
container
,
riid
,
ppContainer
)
!=
S_OK
)
return
WINED3DERR_INVALIDCALL
;
return
WINED3D_OK
;
}
HRESULT
WINAPI
IWineD3DSurfaceImpl_GetDesc
(
IWineD3DSurface
*
iface
,
WINED3DSURFACE_DESC
*
pDesc
)
{
...
...
dlls/wined3d/swapchain.c
View file @
07f4f704
...
...
@@ -77,6 +77,7 @@ HRESULT WINAPI IWineD3DSwapChainImpl_QueryInterface(IWineD3DSwapChain *iface, RE
*
ppobj
=
This
;
return
WINED3D_OK
;
}
*
ppobj
=
NULL
;
return
E_NOINTERFACE
;
}
...
...
dlls/wined3d/texture.c
View file @
07f4f704
...
...
@@ -42,6 +42,7 @@ HRESULT WINAPI IWineD3DTextureImpl_QueryInterface(IWineD3DTexture *iface, REFIID
*
ppobj
=
This
;
return
WINED3D_OK
;
}
*
ppobj
=
NULL
;
return
E_NOINTERFACE
;
}
...
...
dlls/wined3d/vertexbuffer.c
View file @
07f4f704
...
...
@@ -39,8 +39,9 @@ HRESULT WINAPI IWineD3DVertexBufferImpl_QueryInterface(IWineD3DVertexBuffer *ifa
||
IsEqualGUID
(
riid
,
&
IID_IWineD3DVertexBuffer
)){
IUnknown_AddRef
(
iface
);
*
ppobj
=
This
;
return
WINED3D
_OK
;
return
S
_OK
;
}
*
ppobj
=
NULL
;
return
E_NOINTERFACE
;
}
...
...
dlls/wined3d/vertexdeclaration.c
View file @
07f4f704
...
...
@@ -403,8 +403,9 @@ HRESULT WINAPI IWineD3DVertexDeclarationImpl_QueryInterface(IWineD3DVertexDeclar
||
IsEqualGUID
(
riid
,
&
IID_IWineD3DVertexDeclaration
)){
IUnknown_AddRef
(
iface
);
*
ppobj
=
This
;
return
WINED3D
_OK
;
return
S
_OK
;
}
*
ppobj
=
NULL
;
return
E_NOINTERFACE
;
}
...
...
dlls/wined3d/vertexshader.c
View file @
07f4f704
...
...
@@ -2068,8 +2068,9 @@ HRESULT WINAPI IWineD3DVertexShaderImpl_QueryInterface(IWineD3DVertexShader *ifa
||
IsEqualGUID
(
riid
,
&
IID_IWineD3DVertexShader
))
{
IUnknown_AddRef
(
iface
);
*
ppobj
=
This
;
return
WINED3D
_OK
;
return
S
_OK
;
}
*
ppobj
=
NULL
;
return
E_NOINTERFACE
;
}
...
...
dlls/wined3d/volume.c
View file @
07f4f704
...
...
@@ -38,8 +38,9 @@ HRESULT WINAPI IWineD3DVolumeImpl_QueryInterface(IWineD3DVolume *iface, REFIID r
||
IsEqualGUID
(
riid
,
&
IID_IWineD3DVolume
)){
IUnknown_AddRef
(
iface
);
*
ppobj
=
This
;
return
WINED3D
_OK
;
return
S
_OK
;
}
*
ppobj
=
NULL
;
return
E_NOINTERFACE
;
}
...
...
@@ -141,7 +142,10 @@ HRESULT WINAPI IWineD3DVolumeImpl_GetContainer(IWineD3DVolume *iface, REFIID rii
}
TRACE
(
"Relaying to QueryInterface
\n
"
);
return
IUnknown_QueryInterface
(
This
->
container
,
riid
,
ppContainer
);
if
(
IUnknown_QueryInterface
(
This
->
container
,
riid
,
ppContainer
)
!=
S_OK
)
return
WINED3DERR_INVALIDCALL
;
return
WINED3D_OK
;
}
HRESULT
WINAPI
IWineD3DVolumeImpl_GetDesc
(
IWineD3DVolume
*
iface
,
WINED3DVOLUME_DESC
*
pDesc
)
{
...
...
dlls/wined3d/volumetexture.c
View file @
07f4f704
...
...
@@ -40,8 +40,9 @@ HRESULT WINAPI IWineD3DVolumeTextureImpl_QueryInterface(IWineD3DVolumeTexture *i
||
IsEqualGUID
(
riid
,
&
IID_IWineD3DVolumeTexture
))
{
IUnknown_AddRef
(
iface
);
*
ppobj
=
This
;
return
WINED3D
_OK
;
return
S
_OK
;
}
*
ppobj
=
NULL
;
return
E_NOINTERFACE
;
}
...
...
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