Commit 1431a9a5 authored by Christopher Tenter's avatar Christopher Tenter
Browse files

cppcheck warning refs #2192

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@18791 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 88b79a05
......@@ -2735,9 +2735,9 @@ void DrawMeshT<Mesh>::dumpObj(const char* _filename) const
// ptr to vertex
const char* v = &vertices_[i * vertexDecl_->getVertexStride()];
const float* pos = reinterpret_cast<const float*>(v + offsetPos_);
const float* n = reinterpret_cast<const float*>(v + offsetNormal_);
const float* texc = reinterpret_cast<const float*>(v + offsetTexc_);
const float* pos = reinterpret_cast<const float*>((const void*)(v + offsetPos_));
const float* n = reinterpret_cast<const float*>((const void*)(v + offsetNormal_));
const float* texc = reinterpret_cast<const float*>((const void*)(v + offsetTexc_));
// unsigned int col = *reinterpret_cast<const unsigned int*>(v + offsetColor_);
switch (attrId)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment