Fixed Coverity issue.

CID 11668: Uninitialized scalar field (UNINIT_CTOR)
Non-static class member _primitiveMode is not initialized in this constructor nor in any functions that it calls.
This commit is contained in:
Robert Osfield 2011-05-24 10:18:05 +00:00
parent 3357cc0717
commit 65d2ddd325

View File

@ -24,7 +24,8 @@ GLBeginEndAdapter::GLBeginEndAdapter(State* state):
_normalAssigned(false),
_normal(0.0f,0.0f,1.0f),
_colorAssigned(false),
_color(1.0f,1.0f,1.0f,1.0f)
_color(1.0f,1.0f,1.0f,1.0f),
_primitiveMode(0)
{
}