Compile fixes.

This commit is contained in:
leo 2015-05-17 06:47:10 +00:00
parent 7f7a93e015
commit b821a76b17
2 changed files with 6 additions and 2 deletions

View file

@ -165,7 +165,11 @@ void lcInitializeGLExtensions(const QGLContext* Context)
{
PFNGLDEBUGMESSAGECALLBACKARBPROC DebugMessageCallback = (PFNGLDEBUGMESSAGECALLBACKARBPROC)Context->getProcAddress("glDebugMessageCallback");
if (DebugMessageCallback)
#ifndef GL_DEBUG_OUTPUT
#define GL_DEBUG_OUTPUT 0x92E0
#endif
if (DebugMessageCallback)
{
DebugMessageCallback((GLDEBUGPROCARB)&lcGLDebugCallback, NULL);
glEnable(GL_DEBUG_OUTPUT);

View file

@ -986,7 +986,7 @@ void View::DrawRotateOverlay()
break;
};
lcMatrix44 WorlMatrix = lcMul(RelativeRotation, lcMatrix44Translation(OverlayCenter));
lcMatrix44 WorldMatrix = lcMul(RelativeRotation, lcMatrix44Translation(OverlayCenter));
WorldMatrix = lcMul(lcMatrix44FromAxisAngle(lcVector3(Rotation[1], Rotation[2], Rotation[3]), Rotation[0] * LC_DTOR), WorldMatrix);
mContext->SetWorldMatrix(WorldMatrix);