Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Bolsee <benoit.bolsee@online.be>2008-11-05 16:22:10 +0300
committerBenoit Bolsee <benoit.bolsee@online.be>2008-11-05 16:22:10 +0300
commit8916f84622ccadbbb4111b03117cc6cc9ad9fe0a (patch)
tree9763e43d44746b120ce541a0cc4f663628be849b /source/gameengine/VideoTexture/Exception.cpp
parent3b2a07a8665be4c10b22e2ff84d45d67d86ffc79 (diff)
VideoTexture: Add support for GLSL. FIx small printout bug in Exception printout
Diffstat (limited to 'source/gameengine/VideoTexture/Exception.cpp')
-rw-r--r--source/gameengine/VideoTexture/Exception.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/gameengine/VideoTexture/Exception.cpp b/source/gameengine/VideoTexture/Exception.cpp
index 3ac8b8e321d..3f939de6bc2 100644
--- a/source/gameengine/VideoTexture/Exception.cpp
+++ b/source/gameengine/VideoTexture/Exception.cpp
@@ -168,15 +168,15 @@ void Exception::setXptDesc (void)
}
// add result code
// length of result code
- const size_t rsltSize = 10;
+ const size_t rsltSize = 11;
// delimit description
const char delimRslt[] = ": ";
// set text of description
char rsltTxt[rsltSize];
std::ostrstream os(rsltTxt, rsltSize);
- os << std::hex << m_hRslt << delimRslt;
+ os << std::hex << m_hRslt << delimRslt << '\0';
// copy result to description
- m_desc.insert(0, rsltTxt, rsltSize);
+ m_desc.insert(0, rsltTxt);
// copy exception description to last exception string
m_lastError = m_desc;
}