mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-25 23:25:41 +00:00
[Refs #87: Static Analysis] Couple of cases that confused the analyser
This commit is contained in:
@@ -103,8 +103,10 @@ bool WrappedOpenGL::Serialise_glShaderSource(GLuint shader, GLsizei count, const
|
||||
|
||||
if(m_State == READING)
|
||||
{
|
||||
const char **strings = new const char*[srcs.size()];
|
||||
for(size_t i=0; i < srcs.size(); i++)
|
||||
size_t numStrings = srcs.size();
|
||||
|
||||
const char **strings = new const char*[numStrings];
|
||||
for(size_t i=0; i < numStrings; i++)
|
||||
strings[i] = srcs[i].c_str();
|
||||
|
||||
ResourceId liveId = GetResourceManager()->GetLiveID(id);
|
||||
|
||||
Reference in New Issue
Block a user