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
ad4c2bdb
Commit
ad4c2bdb
authored
Nov 17, 2006
by
H. Verbeet
Committed by
Alexandre Julliard
Nov 17, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Make the offscreen render mode a registry setting.
parent
44f4e254
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
4 deletions
+19
-4
device.c
dlls/wined3d/device.c
+1
-4
wined3d_main.c
dlls/wined3d/wined3d_main.c
+14
-0
wined3d_private.h
dlls/wined3d/wined3d_private.h
+4
-0
No files found.
dlls/wined3d/device.c
View file @
ad4c2bdb
...
...
@@ -71,9 +71,6 @@ inline static Display *get_display( HDC hdc )
return
display
;
}
/* TODO: setup some flags in the regestry to enable, disable pbuffer support */
/* enable pbuffer support for offscreen textures */
BOOL
pbuffer_support
=
FALSE
;
/* allocate one pbuffer per surface */
BOOL
pbuffer_per_surface
=
FALSE
;
...
...
@@ -7414,7 +7411,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_ActiveRender(IWineD3DDevice* iface,
/* Offscreen rendering: PBuffers (currently disabled).
* Also note that this path is never reached if FBOs are supported */
}
else
if
(
pbuffer_support
&&
}
else
if
(
wined3d_settings
.
offscreen_rendering_mode
==
ORM_PBUFFER
&&
(
cfgs
=
device_find_fbconfigs
(
This
,
implicitSwapchainImpl
,
RenderSurface
))
!=
NULL
)
{
/** ********************************************************************
...
...
dlls/wined3d/wined3d_main.c
View file @
ad4c2bdb
...
...
@@ -41,6 +41,7 @@ wined3d_settings_t wined3d_settings =
VBO_HW
,
/* Hardware by default */
FALSE
,
/* Use of GLSL disabled by default */
NP2_NATIVE
,
/* Use native NPOT textures, when available */
ORM_BACKBUFFER
,
/* Use the backbuffer to do offscreen rendering */
RTL_AUTO
,
/* Automatically determine best locking method */
64
*
1024
*
1024
/* 64MB texture memory by default */
};
...
...
@@ -202,6 +203,19 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
}
/* There will be a couple of other choices for nonpow2, they are: TextureRecrangle and OpenGL 2 */
}
if
(
!
get_config_key
(
hkey
,
appkey
,
"OffscreenRenderingMode"
,
buffer
,
size
)
)
{
if
(
!
strcmp
(
buffer
,
"backbuffer"
))
{
TRACE
(
"Using the backbuffer for offscreen rendering
\n
"
);
wined3d_settings
.
offscreen_rendering_mode
=
ORM_BACKBUFFER
;
}
else
if
(
!
strcmp
(
buffer
,
"pbuffer"
))
{
TRACE
(
"Using PBuffers for offscreen rendering
\n
"
);
wined3d_settings
.
offscreen_rendering_mode
=
ORM_PBUFFER
;
}
}
if
(
!
get_config_key
(
hkey
,
appkey
,
"RenderTargetLockMode"
,
buffer
,
size
)
)
{
if
(
!
strcmp
(
buffer
,
"disabled"
))
...
...
dlls/wined3d/wined3d_private.h
View file @
ad4c2bdb
...
...
@@ -135,6 +135,9 @@ static WINED3DGLTYPE const glTypeLookup[WINED3DDECLTYPE_UNUSED] = {
#define NP2_REPACK 1
#define NP2_NATIVE 2
#define ORM_BACKBUFFER 0
#define ORM_PBUFFER 1
#define SHADER_SW 0
#define SHADER_ARB 1
#define SHADER_GLSL 2
...
...
@@ -160,6 +163,7 @@ typedef struct wined3d_settings_s {
BOOL
glslRequested
;
/* nonpower 2 function */
int
nonpower2_mode
;
int
offscreen_rendering_mode
;
int
rendertargetlock_mode
;
/* Memory tracking and object counting */
unsigned
int
emulated_textureram
;
...
...
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