fix Linux build (tested on Ubuntu 12.10, 32bit)
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
#include "../gwenUserInterface.h"
|
#include "../gwenUserInterface.h"
|
||||||
#include "Bullet3Dynamics/ConstraintSolver/b3Point2PointConstraint.h"
|
#include "Bullet3Dynamics/ConstraintSolver/b3Point2PointConstraint.h"
|
||||||
#include "OpenGLWindow/GLPrimitiveRenderer.h"
|
#include "OpenGLWindow/GLPrimitiveRenderer.h"
|
||||||
#include "Bullet3OpenCL/RayCast/b3GpuRayCast.h"
|
#include "Bullet3OpenCL/Raycast/b3GpuRaycast.h"
|
||||||
|
|
||||||
|
|
||||||
void GpuConvexScene::setupScene(const ConstructionInfo& ci)
|
void GpuConvexScene::setupScene(const ConstructionInfo& ci)
|
||||||
|
|||||||
@@ -42,10 +42,10 @@ subject to the following restrictions:
|
|||||||
|
|
||||||
|
|
||||||
///on Linux only glDrawElementsInstancedARB is defined?!?
|
///on Linux only glDrawElementsInstancedARB is defined?!?
|
||||||
#ifdef __linux
|
//#ifdef __linux
|
||||||
#define glDrawElementsInstanced glDrawElementsInstancedARB
|
//#define glDrawElementsInstanced glDrawElementsInstancedARB
|
||||||
|
//
|
||||||
#endif //__linux
|
//#endif //__linux
|
||||||
|
|
||||||
#endif //__OPENGL_INCLUDE_H
|
#endif //__OPENGL_INCLUDE_H
|
||||||
|
|
||||||
|
|||||||
@@ -24,15 +24,11 @@ cl_command_queue g_cqCommandQue;
|
|||||||
|
|
||||||
#include "Bullet3Common/b3Logging.h"
|
#include "Bullet3Common/b3Logging.h"
|
||||||
|
|
||||||
#include <Windows.h>
|
|
||||||
|
|
||||||
void myprintf(const char* msg)
|
void myprintf(const char* msg)
|
||||||
{
|
{
|
||||||
#ifdef _WINDOWS
|
//OutputDebugStringA(msg);
|
||||||
OutputDebugStringA(msg);
|
|
||||||
#else
|
|
||||||
printf(msg);
|
printf(msg);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
|
|||||||
Reference in New Issue
Block a user