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
31abc2fe
Commit
31abc2fe
authored
Aug 09, 2006
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Aug 10, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Draw buffers support.
parent
30ef7f0b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
glsl_shader.c
dlls/wined3d/glsl_shader.c
+12
-4
No files found.
dlls/wined3d/glsl_shader.c
View file @
31abc2fe
...
...
@@ -562,6 +562,7 @@ static void shader_glsl_get_register_name(
/* oPos, oFog and oPts in D3D */
const
char
*
hwrastout_reg_names
[]
=
{
"gl_Position"
,
"gl_FogFragCoord"
,
"gl_PointSize"
};
WineD3D_GL_Info
*
gl_info
=
&
((
IWineD3DImpl
*
)((
IWineD3DPixelShaderImpl
*
)
arg
->
shader
)
->
wineD3DDevice
->
wineD3D
)
->
gl_info
;
DWORD
reg
=
param
&
D3DSP_REGNUM_MASK
;
DWORD
regtype
=
shader_get_regtype
(
param
);
IWineD3DBaseShaderImpl
*
This
=
(
IWineD3DBaseShaderImpl
*
)
arg
->
shader
;
...
...
@@ -641,10 +642,17 @@ static void shader_glsl_get_register_name(
sprintf
(
tmpStr
,
"Vsampler%lu"
,
reg
);
break
;
case
D3DSPR_COLOROUT
:
sprintf
(
tmpStr
,
"gl_FragData[%lu]"
,
reg
);
if
(
reg
>
0
)
{
/* TODO: See GL_ARB_draw_buffers */
FIXME
(
"Unsupported write to render target %lu
\n
"
,
reg
);
if
(
GL_SUPPORT
(
ARB_DRAW_BUFFERS
))
{
sprintf
(
tmpStr
,
"gl_FragData[%lu]"
,
reg
);
if
(
reg
>
0
)
{
/* TODO: See GL_ARB_draw_buffers */
FIXME
(
"Unsupported write to render target %lu
\n
"
,
reg
);
}
}
else
{
/* On older cards with GLSL support like the GeforceFX there's only one buffer. */
if
(
reg
>
0
)
WARN
(
"This OpenGL implementation doesn't support writing to multiple render targets!
\n
"
);
else
sprintf
(
tmpStr
,
"gl_FragColor"
);
}
break
;
case
D3DSPR_RASTOUT
:
...
...
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