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
08cc0d1c
Commit
08cc0d1c
authored
Jul 16, 2003
by
Lionel Ulmer
Committed by
Alexandre Julliard
Jul 16, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- do not forget to set the 'initial_upload_done' flag (to have better
performance) - better handling of the 'initial' flag for frame-buffer flushes
parent
22d38ef3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
mesa.c
dlls/ddraw/d3ddevice/mesa.c
+4
-3
d3dtexture.c
dlls/ddraw/d3dtexture.c
+3
-0
No files found.
dlls/ddraw/d3ddevice/mesa.c
View file @
08cc0d1c
...
...
@@ -107,6 +107,7 @@ static DWORD d3ddevice_set_state_for_flush(IDirect3DDeviceImpl *d3d_dev, LPCRECT
glTexParameteri
(
GL_TEXTURE_2D
,
GL_TEXTURE_WRAP_T
,
GL_CLAMP
);
}
else
{
glBindTexture
(
GL_TEXTURE_2D
,
gl_d3d_dev
->
unlock_tex
);
*
initial
=
FALSE
;
}
if
(
d3d_dev
->
tex_mat_is_identity
[
0
]
==
FALSE
)
{
glMatrixMode
(
GL_TEXTURE
);
...
...
@@ -2821,7 +2822,7 @@ d3ddevice_blt(IDirectDrawSurfaceImpl *This, LPRECT rdst,
GLenum
prev_draw
;
WINE_GL_BUFFER_TYPE
src_buffer_type
;
IDirect3DDeviceGLImpl
*
gl_d3d_dev
=
(
IDirect3DDeviceGLImpl
*
)
This
->
d3ddevice
;
BOOLEAN
initial
=
FALSE
;
BOOLEAN
initial
;
DWORD
opt_bitmap
;
int
x
,
y
;
...
...
@@ -2941,7 +2942,7 @@ d3ddevice_blt(IDirectDrawSurfaceImpl *This, LPRECT rdst,
int
width
,
height
;
GLenum
prev_draw
;
IDirect3DDeviceGLImpl
*
gl_d3d_dev
=
(
IDirect3DDeviceGLImpl
*
)
This
->
d3ddevice
;
BOOLEAN
initial
=
FALSE
;
BOOLEAN
initial
;
DWORD
opt_bitmap
;
int
x
,
y
;
double
x_stretch
,
y_stretch
;
...
...
@@ -3514,7 +3515,7 @@ static void d3ddevice_flush_to_frame_buffer(IDirect3DDeviceImpl *d3d_dev, LPCREC
RECT
loc_rect
;
IDirect3DDeviceGLImpl
*
gl_d3d_dev
=
(
IDirect3DDeviceGLImpl
*
)
d3d_dev
;
int
x
,
y
;
BOOLEAN
initial
=
FALSE
;
BOOLEAN
initial
;
DWORD
opt_bitmap
;
/* Note : no need here to lock the 'device critical section' as we are already protected by
...
...
dlls/ddraw/d3dtexture.c
View file @
08cc0d1c
...
...
@@ -270,6 +270,7 @@ gltex_upload_texture(IDirectDrawSurfaceImpl *surf_ptr, IDirect3DDeviceImpl *d3dd
upload_surface_to_tex_memory
(
NULL
,
0
,
0
,
&
(
gl_surf_ptr
->
surface_ptr
));
upload_surface_to_tex_memory_release
();
gl_surf_ptr
->
dirty_flag
=
SURFACE_MEMORY
;
gl_surf_ptr
->
initial_upload_done
=
TRUE
;
}
else
{
ERR
(
"Problem for upload of texture %d (level = %d / initial done = %d).
\n
"
,
gl_surf_ptr
->
tex_name
,
surf_ptr
->
mipmap_level
,
gl_surf_ptr
->
initial_upload_done
);
...
...
@@ -393,6 +394,7 @@ gltex_bltfast(IDirectDrawSurfaceImpl *surf_ptr, DWORD dstx,
upload_surface_to_tex_memory
(
NULL
,
0
,
0
,
&
(
gl_surf_ptr
->
surface_ptr
));
upload_surface_to_tex_memory_release
();
gl_surf_ptr
->
dirty_flag
=
SURFACE_MEMORY
;
gl_surf_ptr
->
initial_upload_done
=
TRUE
;
}
else
{
glBindTexture
(
GL_TEXTURE_2D
,
cur_tex
);
LEAVE_GL
();
...
...
@@ -408,6 +410,7 @@ gltex_bltfast(IDirectDrawSurfaceImpl *surf_ptr, DWORD dstx,
upload_surface_to_tex_memory
(
NULL
,
0
,
0
,
&
(
gl_surf_ptr
->
surface_ptr
));
upload_surface_to_tex_memory_release
();
gl_surf_ptr
->
dirty_flag
=
SURFACE_MEMORY
;
gl_surf_ptr
->
initial_upload_done
=
TRUE
;
}
else
{
glBindTexture
(
GL_TEXTURE_2D
,
cur_tex
);
LEAVE_GL
();
...
...
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