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
605136ab
Commit
605136ab
authored
Aug 29, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 29, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of the SHADER_PGMSIZE constant.
parent
52d10805
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
shader.c
dlls/wined3d/shader.c
+2
-3
wined3d_private.h
dlls/wined3d/wined3d_private.h
+0
-2
No files found.
dlls/wined3d/shader.c
View file @
605136ab
...
...
@@ -245,13 +245,12 @@ void shader_buffer_clear(struct wined3d_shader_buffer *buffer)
BOOL
shader_buffer_init
(
struct
wined3d_shader_buffer
*
buffer
)
{
buffer
->
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
SHADER_PGMSIZE
)
;
if
(
!
buffer
->
buffer
)
buffer
->
buffer
_size
=
16384
;
if
(
!
(
buffer
->
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
buffer
->
buffer_size
))
)
{
ERR
(
"Failed to allocate shader buffer memory.
\n
"
);
return
FALSE
;
}
buffer
->
buffer_size
=
SHADER_PGMSIZE
;
shader_buffer_clear
(
buffer
);
return
TRUE
;
...
...
dlls/wined3d/wined3d_private.h
View file @
605136ab
...
...
@@ -412,8 +412,6 @@ enum wined3d_shader_rel_op
* Shader model 3 according to msdn (and for software shaders) */
#define MAX_LABELS 16
#define SHADER_PGMSIZE 16384
struct
wined3d_shader_buffer
{
char
*
buffer
;
...
...
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