forked from 0ad/0ad
Android fixes
This was SVN commit r11068.
This commit is contained in:
parent
b9e623a6d5
commit
d70a981377
@ -29,6 +29,7 @@
|
||||
#include "lib/sysdep/cursor.h"
|
||||
#include "lib/sysdep/cpu.h"
|
||||
#include "lib/sysdep/gfx.h"
|
||||
#include "lib/sysdep/os_cpu.h"
|
||||
#include "lib/tex/tex.h"
|
||||
#if OS_WIN
|
||||
#include "lib/sysdep/os/win/wversion.h"
|
||||
@ -97,7 +98,7 @@
|
||||
#include "ps/GameSetup/CmdLineArgs.h"
|
||||
#include "ps/GameSetup/HWDetect.h"
|
||||
|
||||
#if !(OS_WIN || OS_MACOSX) // assume all other platforms use X11 for wxWidgets
|
||||
#if !(OS_WIN || OS_MACOSX || OS_ANDROID) // assume all other platforms use X11 for wxWidgets
|
||||
#define MUST_INIT_X11 1
|
||||
#include <X11/Xlib.h>
|
||||
#else
|
||||
|
@ -101,8 +101,10 @@ void WriteSystemInfo()
|
||||
// CPU
|
||||
fprintf(f, "CPU : %s, %s (%dx%dx%d)", un.machine, cpu_IdentifierString(), (int)topology::NumPackages(), (int)topology::CoresPerPackage(), (int)topology::LogicalPerCore());
|
||||
double cpuClock = os_cpu_ClockFrequency(); // query OS (may fail)
|
||||
#if ARCH_X86_X64
|
||||
if(cpuClock <= 0.0)
|
||||
cpuClock = x86_x64::ClockFrequency(); // measure (takes a few ms)
|
||||
#endif
|
||||
if(cpuClock > 0.0)
|
||||
{
|
||||
if(cpuClock < 1e9)
|
||||
|
@ -48,7 +48,9 @@
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// ModelRenderer implementation
|
||||
|
||||
#if ARCH_X86_X64
|
||||
static bool g_EnableSSE = false;
|
||||
#endif
|
||||
|
||||
void ModelRenderer::Init()
|
||||
{
|
||||
@ -97,10 +99,16 @@ void ModelRenderer::BuildPositionAndNormals(
|
||||
return;
|
||||
}
|
||||
|
||||
#if ARCH_X86_X64
|
||||
if (g_EnableSSE)
|
||||
{
|
||||
CModelDef::SkinPointsAndNormals_SSE(numVertices, Position, Normal, vertices, mdef->GetBlendIndices(), model->GetAnimatedBoneMatrices());
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CModelDef::SkinPointsAndNormals(numVertices, Position, Normal, vertices, mdef->GetBlendIndices(), model->GetAnimatedBoneMatrices());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user