Add a shut up counter to GL::TextureCopy

This commit is contained in:
wheremyfoodat 2023-08-12 18:25:49 +03:00
parent 89dbae42e1
commit fc641a450b

View file

@ -695,7 +695,12 @@ void RendererGL::textureCopy(u32 inputAddr, u32 outputAddr, u32 totalBytes, u32
// Find the source surface.
auto srcFramebuffer = getColourBuffer(inputAddr, PICA::ColorFmt::RGBA8, copyStride, copyHeight, false);
if (!srcFramebuffer) {
printf("TextureCopy failed to locate src framebuffer!\n");
static int shutUpCounter = 0; // Don't want to spam the console too much, so shut up after 5 times
if (shutUpCounter < 5) {
shutUpCounter++;
printf("RendererGL::TextureCopy failed to locate src framebuffer!\n");
}
return;
}