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
404f4f73
Commit
404f4f73
authored
Jun 22, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Jun 22, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of some asserts.
parent
7598ab2c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
11 deletions
+3
-11
directx.c
dlls/wined3d/directx.c
+0
-3
palette.c
dlls/wined3d/palette.c
+3
-2
surface_base.c
dlls/wined3d/surface_base.c
+0
-5
surface_gdi.c
dlls/wined3d/surface_gdi.c
+0
-1
No files found.
dlls/wined3d/directx.c
View file @
404f4f73
...
...
@@ -23,7 +23,6 @@
*/
#include "config.h"
#include <assert.h>
#include "wined3d_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d
);
...
...
@@ -242,7 +241,6 @@ static void WineD3D_ReleaseFakeGLContext(void) {
wined3d_fake_gl_context_hwnd
=
NULL
;
wined3d_fake_gl_context_available
=
FALSE
;
}
assert
(
wined3d_fake_gl_context_ref
>=
0
);
LeaveCriticalSection
(
&
wined3d_fake_gl_context_cs
);
}
...
...
@@ -254,7 +252,6 @@ static BOOL WineD3D_CreateFakeGLContext(void) {
TRACE
(
"getting context...
\n
"
);
if
(
wined3d_fake_gl_context_ref
>
0
)
goto
ret
;
assert
(
0
==
wined3d_fake_gl_context_ref
);
wined3d_fake_gl_context_foreign
=
TRUE
;
...
...
dlls/wined3d/palette.c
View file @
404f4f73
...
...
@@ -22,7 +22,6 @@
#include "winerror.h"
#include "wine/debug.h"
#include <assert.h>
#include <string.h>
#include "wined3d_private.h"
...
...
@@ -78,7 +77,9 @@ DWORD IWineD3DPaletteImpl_Size(DWORD dwFlags) {
case
WINEDDPCAPS_2BIT
:
return
4
;
case
WINEDDPCAPS_4BIT
:
return
16
;
case
WINEDDPCAPS_8BIT
:
return
256
;
default:
assert
(
0
);
return
256
;
default:
FIXME
(
"Unhandled size bits %#x.
\n
"
,
dwFlags
&
SIZE_BITS
);
return
256
;
}
}
...
...
dlls/wined3d/surface_base.c
View file @
404f4f73
...
...
@@ -30,8 +30,6 @@
#include "wine/port.h"
#include "wined3d_private.h"
#include <assert.h>
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d_surface
);
/* See also float_16_to_32() in wined3d_private.h */
...
...
@@ -1117,8 +1115,6 @@ HRESULT WINAPI IWineD3DBaseSurfaceImpl_Blt(IWineD3DSurface *iface, const RECT *D
dstwidth
=
xdst
.
right
-
xdst
.
left
;
width
=
(
xdst
.
right
-
xdst
.
left
)
*
bpp
;
assert
(
width
<=
dlock
.
Pitch
);
if
(
DestRect
&&
Src
!=
This
)
dbuf
=
dlock
.
pBits
;
else
...
...
@@ -1619,7 +1615,6 @@ HRESULT WINAPI IWineD3DBaseSurfaceImpl_BltFast(IWineD3DSurface *iface, DWORD dst
slock
.
Pitch
=
dlock
.
Pitch
;
/* Since slock was originally copied from this surface's description, we can just reuse it */
assert
(
This
->
resource
.
allocatedMemory
!=
NULL
);
sbuf
=
This
->
resource
.
allocatedMemory
+
lock_src
.
top
*
pitch
+
lock_src
.
left
*
bpp
;
dbuf
=
This
->
resource
.
allocatedMemory
+
lock_dst
.
top
*
pitch
+
lock_dst
.
left
*
bpp
;
sEntry
=
Src
->
resource
.
format_desc
;
...
...
dlls/wined3d/surface_gdi.c
View file @
404f4f73
...
...
@@ -29,7 +29,6 @@
#include "wine/port.h"
#include "wined3d_private.h"
#include <assert.h>
#include <stdio.h>
/* Use the d3d_surface debug channel to have one channel for all surfaces */
...
...
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