support for GL_EXT_framebuffer_object
This commit is contained in:
parent
cb890e8cb1
commit
dd875fc925
|
@ -62,7 +62,15 @@ void Graphics::init()
|
|||
"Graphics card: ", glGetString(GL_RENDERER),
|
||||
"\nOpenGL driver: ", glGetString(GL_VERSION));
|
||||
|
||||
m_useFBO = m_useFBO && GLEW_ARB_framebuffer_object;
|
||||
if(GLEW_EXT_framebuffer_object && !GLEW_ARB_framebuffer_object) {
|
||||
glGenFramebuffers = glGenFramebuffersEXT;
|
||||
glDeleteFramebuffers = glDeleteFramebuffersEXT;
|
||||
glBindFramebuffer = glBindFramebufferEXT;
|
||||
glFramebufferTexture2D = glFramebufferTexture2DEXT;
|
||||
glCheckFramebufferStatus = glCheckFramebufferStatusEXT;
|
||||
}
|
||||
|
||||
m_useFBO = m_useFBO && (GLEW_ARB_framebuffer_object || GLEW_EXT_framebuffer_object);
|
||||
m_generateHardwareMipmaps = m_generateHardwareMipmaps && m_useFBO; // glGenerateMipmap is supported when FBO is
|
||||
#endif
|
||||
|
||||
|
|
|
@ -278,7 +278,6 @@ void ProtocolGame::parseMessage(InputMessage& msg)
|
|||
|
||||
void ProtocolGame::parseInitGame(InputMessage& msg)
|
||||
{
|
||||
logTraceDebug();
|
||||
uint playerId = msg.getU32();
|
||||
int serverBeat = msg.getU16();
|
||||
msg.getU8(); // can report bugs, ignored
|
||||
|
@ -292,7 +291,6 @@ void ProtocolGame::parseInitGame(InputMessage& msg)
|
|||
void ProtocolGame::parseGMActions(InputMessage& msg)
|
||||
{
|
||||
// not used
|
||||
logTraceDebug();
|
||||
for(int i = 0; i < Proto::NumViolationReasons; ++i)
|
||||
msg.getU8();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue