mirror of
https://github.com/leozide/leocad
synced 2025-02-06 08:46:06 +01:00
Compile fixes.
This commit is contained in:
parent
7f7a93e015
commit
b821a76b17
2 changed files with 6 additions and 2 deletions
|
@ -165,6 +165,10 @@ void lcInitializeGLExtensions(const QGLContext* Context)
|
||||||
{
|
{
|
||||||
PFNGLDEBUGMESSAGECALLBACKARBPROC DebugMessageCallback = (PFNGLDEBUGMESSAGECALLBACKARBPROC)Context->getProcAddress("glDebugMessageCallback");
|
PFNGLDEBUGMESSAGECALLBACKARBPROC DebugMessageCallback = (PFNGLDEBUGMESSAGECALLBACKARBPROC)Context->getProcAddress("glDebugMessageCallback");
|
||||||
|
|
||||||
|
#ifndef GL_DEBUG_OUTPUT
|
||||||
|
#define GL_DEBUG_OUTPUT 0x92E0
|
||||||
|
#endif
|
||||||
|
|
||||||
if (DebugMessageCallback)
|
if (DebugMessageCallback)
|
||||||
{
|
{
|
||||||
DebugMessageCallback((GLDEBUGPROCARB)&lcGLDebugCallback, NULL);
|
DebugMessageCallback((GLDEBUGPROCARB)&lcGLDebugCallback, NULL);
|
||||||
|
|
|
@ -986,7 +986,7 @@ void View::DrawRotateOverlay()
|
||||||
break;
|
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);
|
WorldMatrix = lcMul(lcMatrix44FromAxisAngle(lcVector3(Rotation[1], Rotation[2], Rotation[3]), Rotation[0] * LC_DTOR), WorldMatrix);
|
||||||
mContext->SetWorldMatrix(WorldMatrix);
|
mContext->SetWorldMatrix(WorldMatrix);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue