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
94856326
Commit
94856326
authored
Jul 19, 2005
by
Oliver Stieber
Committed by
Alexandre Julliard
Jul 19, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement the use of PBuffers for offscreen textures.
parent
43076139
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
0 deletions
+34
-0
device.c
dlls/wined3d/device.c
+0
-0
wined3d_private.h
dlls/wined3d/wined3d_private.h
+34
-0
No files found.
dlls/wined3d/device.c
View file @
94856326
This diff is collapsed.
Click to expand it.
dlls/wined3d/wined3d_private.h
View file @
94856326
...
...
@@ -371,6 +371,35 @@ typedef struct IWineD3DImpl
extern
const
IWineD3DVtbl
IWineD3D_Vtbl
;
/** Hacked out start of a context manager!! **/
typedef
struct
glContext
{
int
Width
;
int
Height
;
int
usedcount
;
GLXContext
context
;
Drawable
drawable
;
IWineD3DSurface
*
pSurface
;
#if 0 /* TODO: someway to represent the state of the context */
IWineD3DStateBlock *pStateBlock;
#endif
/* a few other things like format */
}
glContext
;
/* TODO: setup some flags in the regestry to enable, disable pbuffer support
(since it will break quite a few things until contexts are managed properly!) */
extern
BOOL
pbuffer_support
;
/* allocate one pbuffer per surface */
extern
BOOL
pbuffer_per_surface
;
/* Maximum number of contexts/pbuffers to keep in cache,
set to 100 because ATI's drivers don't support deleting pBuffers properly
this needs to be migrated to a list and some option availalbe for controle the cache size.
*/
#define CONTEXT_CACHE 100
/*****************************************************************************
* IWineD3DDevice implementation structure
*/
...
...
@@ -444,6 +473,11 @@ typedef struct IWineD3DDeviceImpl
/* Debug stream management */
BOOL
debug
;
/* Screen buffer resources */
glContext
contextCache
[
CONTEXT_CACHE
];
/* A flag to check if endscene has been called before changing the render tartet */
BOOL
sceneEnded
;
}
IWineD3DDeviceImpl
;
extern
const
IWineD3DDeviceVtbl
IWineD3DDevice_Vtbl
;
...
...
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