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
cb26d59d
Commit
cb26d59d
authored
Jan 15, 2007
by
H. Verbeet
Committed by
Alexandre Julliard
Jan 16, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
05/49: wined3d: Only add line numbers for new lines in shader_addline().
parent
b28bd67f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
2 deletions
+14
-2
baseshader.c
dlls/wined3d/baseshader.c
+11
-2
pixelshader.c
dlls/wined3d/pixelshader.c
+1
-0
vertexshader.c
dlls/wined3d/vertexshader.c
+1
-0
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-0
No files found.
dlls/wined3d/baseshader.c
View file @
cb26d59d
...
...
@@ -57,9 +57,18 @@ int shader_addline(
return
-
1
;
}
if
(
buffer
->
newline
)
{
TRACE
(
"GL HW (%u, %u) : %s"
,
buffer
->
lineNo
+
1
,
buffer
->
bsize
,
base
);
buffer
->
newline
=
FALSE
;
}
else
{
TRACE
(
base
);
}
buffer
->
bsize
+=
rc
;
buffer
->
lineNo
++
;
TRACE
(
"GL HW (%u, %u) : %s"
,
buffer
->
lineNo
,
buffer
->
bsize
,
base
);
if
(
buffer
->
buffer
[
buffer
->
bsize
-
1
]
==
'\n'
)
{
buffer
->
lineNo
++
;
buffer
->
newline
=
TRUE
;
}
return
0
;
}
...
...
dlls/wined3d/pixelshader.c
View file @
cb26d59d
...
...
@@ -832,6 +832,7 @@ inline static VOID IWineD3DPixelShaderImpl_GenerateShader(
#endif
buffer
.
bsize
=
0
;
buffer
.
lineNo
=
0
;
buffer
.
newline
=
TRUE
;
if
(
This
->
baseShader
.
shader_mode
==
SHADER_GLSL
)
{
...
...
dlls/wined3d/vertexshader.c
View file @
cb26d59d
...
...
@@ -715,6 +715,7 @@ static VOID IWineD3DVertexShaderImpl_GenerateShader(
#endif
buffer
.
bsize
=
0
;
buffer
.
lineNo
=
0
;
buffer
.
newline
=
TRUE
;
if
(
This
->
baseShader
.
shader_mode
==
SHADER_GLSL
)
{
...
...
dlls/wined3d/wined3d_private.h
View file @
cb26d59d
...
...
@@ -1491,6 +1491,7 @@ typedef struct SHADER_BUFFER {
char
*
buffer
;
unsigned
int
bsize
;
unsigned
int
lineNo
;
BOOL
newline
;
}
SHADER_BUFFER
;
/* Undocumented opcode controls */
...
...
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