mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-10-26 22:06:06 +03:00
fix(gx): restore old behavior to GLSDL
This commit is contained in:
parent
29edb4e032
commit
47b9878e3e
@ -186,7 +186,7 @@ int32_t CGxDeviceGLSDL::DeviceCreate(int32_t (*windowProc)(void* window, uint32_
|
|||||||
}
|
}
|
||||||
|
|
||||||
this->m_GLSDLWindow.Create("World of Warcraft", rect, GLTF_D24, 1);
|
this->m_GLSDLWindow.Create("World of Warcraft", rect, GLTF_D24, 1);
|
||||||
this->m_GLSDLDevice.Init(&this->m_GLSDLWindow, "WoW", 0);
|
this->m_GLSDLDevice.Init(&this->m_GLSDLWindow, "WoW", 0x4);
|
||||||
// this->m_GLSDLDevice.Init(&this->m_GLSDLWindow, "WoW", 4);
|
// this->m_GLSDLDevice.Init(&this->m_GLSDLWindow, "WoW", 4);
|
||||||
|
|
||||||
GLSDLDevice::SetOption(GLSDLDevice::eShaderConstantBindings, false);
|
GLSDLDevice::SetOption(GLSDLDevice::eShaderConstantBindings, false);
|
||||||
|
|||||||
@ -2739,32 +2739,28 @@ void GLSDLDevice::Sub38460(bool a2) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void GLSDLDevice::Swap() {
|
void GLSDLDevice::Swap() {
|
||||||
// if (this->m_Context.m_Window) {
|
if (this->m_Window) {
|
||||||
// if (this->m_FlippedSystemBuffer) {
|
if (this->m_FlippedSystemBuffer) {
|
||||||
// GLRect rect = {
|
GLRect rect = {
|
||||||
// 0,
|
0,
|
||||||
// 0,
|
0,
|
||||||
// static_cast<int32_t>(this->m_BackBufferColor->m_Width),
|
static_cast<int32_t>(this->m_BackBufferColor->m_Width),
|
||||||
// static_cast<int32_t>(this->m_BackBufferColor->m_Height)
|
static_cast<int32_t>(this->m_BackBufferColor->m_Height)
|
||||||
// };
|
};
|
||||||
|
|
||||||
// GLMipmap* image = this->m_BackBufferColor->GetMipmap(0, GL_TEXTURE_CUBE_MAP_POSITIVE_X);
|
GLMipmap* image = this->m_BackBufferColor->GetMipmap(0, GL_TEXTURE_CUBE_MAP_POSITIVE_X);
|
||||||
// this->CopyTex(0, 0, image, &rect);
|
this->CopyTex(0, 0, image, &rect);
|
||||||
// }
|
}
|
||||||
|
|
||||||
// this->DrawRect();
|
this->DrawRect();
|
||||||
|
|
||||||
// this->m_FrameNumber++;
|
this->m_FrameNumber++;
|
||||||
// this->m_DrawCount = 0;
|
this->m_DrawCount = 0;
|
||||||
// } else {
|
} else {
|
||||||
// // glFlushRender();
|
// glFlushRender();
|
||||||
// this->m_DrawCount = 0;
|
this->m_DrawCount = 0;
|
||||||
// }
|
}
|
||||||
|
}s
|
||||||
this->DrawRect();
|
|
||||||
this->m_FrameNumber++;
|
|
||||||
this->m_DrawCount = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
void GLSDLDevice::UpdateFFPTexturing() {
|
void GLSDLDevice::UpdateFFPTexturing() {
|
||||||
// TODO
|
// TODO
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user