fix compile error no ARM platforms

* and some improvements
This commit is contained in:
Eduardo Bart 2012-04-04 16:02:43 -03:00
parent 2c38dfb397
commit 53d56259c7
3 changed files with 3 additions and 7 deletions

View File

@ -43,8 +43,8 @@ SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O1 -ggdb")
SET(CMAKE_C_FLAGS_RELWITHDEBINFO "-O1 -ggdb") SET(CMAKE_C_FLAGS_RELWITHDEBINFO "-O1 -ggdb")
SET(CMAKE_CXX_FLAGS_RELEASE "-O2 -ffast-math") SET(CMAKE_CXX_FLAGS_RELEASE "-O2 -ffast-math")
SET(CMAKE_C_FLAGS_RELEASE "-O2 -ffast-math") SET(CMAKE_C_FLAGS_RELEASE "-O2 -ffast-math")
SET(CMAKE_CXX_FLAGS_RELFORPERFORMANCE "-Ofast") SET(CMAKE_CXX_FLAGS_RELFORPERFORMANCE "-Ofast -fomit-frame-pointer")
SET(CMAKE_C_FLAGS_RELFORPERFORMANCE "-Ofast") SET(CMAKE_C_FLAGS_RELFORPERFORMANCE "-Ofast -fomit-frame-pointer")
SET(CMAKE_CXX_FLAGS_RELFORSIZE "-Os") SET(CMAKE_CXX_FLAGS_RELFORSIZE "-Os")
SET(CMAKE_C_FLAGS_RELFORSIZE "-Os") SET(CMAKE_C_FLAGS_RELFORSIZE "-Os")
SET(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -static-libgcc -static-libstdc++ -Wl,--as-needed") SET(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -static-libgcc -static-libstdc++ -Wl,--as-needed")

View File

@ -59,7 +59,7 @@ void crashHandler(int signum, siginfo_t* info, void* secret)
ss << " rsp = " << context.uc_mcontext.gregs[REG_RSP] << std::endl; ss << " rsp = " << context.uc_mcontext.gregs[REG_RSP] << std::endl;
ss << " efl = " << context.uc_mcontext.gregs[REG_EFL] << std::endl; ss << " efl = " << context.uc_mcontext.gregs[REG_EFL] << std::endl;
ss << std::endl; ss << std::endl;
#else #elif defined(REG_EIP)
ss << " at eip = " << context.uc_mcontext.gregs[REG_EIP] << std::endl; ss << " at eip = " << context.uc_mcontext.gregs[REG_EIP] << std::endl;
ss << " eax = " << context.uc_mcontext.gregs[REG_EAX] << std::endl; ss << " eax = " << context.uc_mcontext.gregs[REG_EAX] << std::endl;
ss << " ebx = " << context.uc_mcontext.gregs[REG_EBX] << std::endl; ss << " ebx = " << context.uc_mcontext.gregs[REG_EBX] << std::endl;

View File

@ -167,10 +167,6 @@ void UIWidget::drawImage(const Rect& screenCoords)
m_imageTexture->setSmooth(m_imageSmooth); m_imageTexture->setSmooth(m_imageSmooth);
// this will increase fps when rendering larger images, like the background, and improve image quality
if(m_imageSmooth && !m_imageTexture->hasMipmaps() && g_graphics.canGenerateMipmaps())
m_imageTexture->generateMipmaps();
g_painter.setColor(m_imageColor); g_painter.setColor(m_imageColor);
g_painter.drawTextureCoords(m_imageCoordsBuffer, m_imageTexture); g_painter.drawTextureCoords(m_imageCoordsBuffer, m_imageTexture);
} }