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
3a1aeef7
Commit
3a1aeef7
authored
Oct 18, 2008
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Oct 20, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add ENTER_GL/LEAVE_GL to gen_yuv_shader.
parent
5163a360
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+4
-0
No files found.
dlls/wined3d/arb_program_shader.c
View file @
3a1aeef7
...
...
@@ -3539,10 +3539,12 @@ static GLuint gen_yuv_shader(IWineD3DDeviceImpl *device, WINED3DFORMAT fmt, GLen
buffer
.
newline
=
TRUE
;
buffer
.
buffer
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
SHADER_PGMSIZE
);
ENTER_GL
();
GL_EXTCALL
(
glGenProgramsARB
(
1
,
&
shader
));
checkGLcall
(
"GL_EXTCALL(glGenProgramsARB(1, &shader))"
);
GL_EXTCALL
(
glBindProgramARB
(
GL_FRAGMENT_PROGRAM_ARB
,
shader
));
checkGLcall
(
"glBindProgramARB(GL_FRAGMENT_PROGRAM_ARB, shader)"
);
LEAVE_GL
();
if
(
!
shader
)
{
HeapFree
(
GetProcessHeap
(),
0
,
buffer
.
buffer
);
return
0
;
...
...
@@ -3617,6 +3619,7 @@ static GLuint gen_yuv_shader(IWineD3DDeviceImpl *device, WINED3DFORMAT fmt, GLen
shader_addline
(
&
buffer
,
"MAD result.color.b, chroma.g, yuv_coef.w, luminance.%c;
\n
"
,
luminance_component
);
shader_addline
(
&
buffer
,
"END
\n
"
);
ENTER_GL
();
GL_EXTCALL
(
glProgramStringARB
(
GL_FRAGMENT_PROGRAM_ARB
,
GL_PROGRAM_FORMAT_ASCII_ARB
,
strlen
(
buffer
.
buffer
),
buffer
.
buffer
));
if
(
glGetError
()
==
GL_INVALID_OPERATION
)
{
...
...
@@ -3626,6 +3629,7 @@ static GLuint gen_yuv_shader(IWineD3DDeviceImpl *device, WINED3DFORMAT fmt, GLen
debugstr_a
((
const
char
*
)
glGetString
(
GL_PROGRAM_ERROR_STRING_ARB
)));
}
HeapFree
(
GetProcessHeap
(),
0
,
buffer
.
buffer
);
LEAVE_GL
();
if
(
fmt
==
WINED3DFMT_YUY2
)
{
if
(
textype
==
GL_TEXTURE_RECTANGLE_ARB
)
{
...
...
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