mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
renderer_opengl: Create gl_framebuffer_data if empty.
This commit is contained in:
parent
c6f78a4a6d
commit
795893a9a5
|
@ -379,7 +379,8 @@ void RendererOpenGL::PrepareRendertarget(const Tegra::FramebufferConfig* framebu
|
||||||
// If framebuffer is provided, reload it from memory to a texture
|
// If framebuffer is provided, reload it from memory to a texture
|
||||||
if (screen_info.texture.width != static_cast<GLsizei>(framebuffer->width) ||
|
if (screen_info.texture.width != static_cast<GLsizei>(framebuffer->width) ||
|
||||||
screen_info.texture.height != static_cast<GLsizei>(framebuffer->height) ||
|
screen_info.texture.height != static_cast<GLsizei>(framebuffer->height) ||
|
||||||
screen_info.texture.pixel_format != framebuffer->pixel_format) {
|
screen_info.texture.pixel_format != framebuffer->pixel_format ||
|
||||||
|
gl_framebuffer_data.empty()) {
|
||||||
// Reallocate texture if the framebuffer size has changed.
|
// Reallocate texture if the framebuffer size has changed.
|
||||||
// This is expected to not happen very often and hence should not be a
|
// This is expected to not happen very often and hence should not be a
|
||||||
// performance problem.
|
// performance problem.
|
||||||
|
|
Loading…
Reference in a new issue