mirror of
https://github.com/leozide/leocad
synced 2025-01-17 18:11:42 +01:00
Compile fixes.
This commit is contained in:
parent
7f7a93e015
commit
b821a76b17
2 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue