Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenFlipper
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
OpenFlipper-Free
OpenFlipper
Commits
d5fcc1ab
Commit
d5fcc1ab
authored
May 08, 2020
by
Jan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some sprintf warnings
parent
9a333480
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
libs_required/ACG/GL/ShaderCache.cc
libs_required/ACG/GL/ShaderCache.cc
+2
-4
No files found.
libs_required/ACG/GL/ShaderCache.cc
View file @
d5fcc1ab
...
...
@@ -156,8 +156,7 @@ GLSL::Program* ACG::ShaderCache::getProgram( const ShaderGenDesc* _desc, const s
{
static
int
counter
=
0
;
QString
fileName
;
fileName
.
sprintf
(
"shader_%02d.glsl"
,
counter
++
);
QString
fileName
=
QString
(
"shader_%1.glsl"
).
arg
(
counter
++
,
2
,
10
,
QLatin1Char
(
'0'
))
;
fileName
=
dbgOutputDir_
+
QDir
::
separator
()
+
fileName
;
QFile
fileOut
(
fileName
);
...
...
@@ -517,8 +516,7 @@ GLSL::Program* ACG::ShaderCache::getComputeProgram(const char* _computeShaderFil
}
}
QString
fnv_string
;
fnv_string
.
sprintf
(
"%X"
,
fnv_hash
);
QString
fnv_string
=
QString
::
number
(
fnv_hash
,
16
).
toUpper
();
std
::
string
dumpFilename
=
QString
(
dbgOutputDir_
+
QDir
::
separator
()
+
fileInfo
.
fileName
()
+
fnv_string
).
toStdString
();
...
...
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