Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Dextinfire committed Sep 17, 2024
1 parent 30cedee commit 9193fb7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,8 @@ void Render() {
CCLCC::YesNoTrigger::YesNoTriggerPtr->Render();
}
}
if(SaveSystem::Implementation) {

if (SaveSystem::Implementation) {
Renderer->CaptureScreencap(SaveSystem::GetWorkingSaveThumbnail());
}
if (GetFlag(SF_Pokecon_Open)) {
Expand Down
6 changes: 3 additions & 3 deletions src/renderer/opengl/renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ std::vector<uint8_t> Renderer::GetImageFromTexture(uint32_t texture,
return result;
}

int Renderer::GetImageFromTexture(uint32_t texture,
RectF dimensions, tcb::span<uint8_t> outBuffer) {
int Renderer::GetImageFromTexture(uint32_t texture, RectF dimensions,
tcb::span<uint8_t> outBuffer) {
const int bufferSize = dimensions.Width * dimensions.Height * 4;
assert(outBuffer.size() >= bufferSize);
glBindTexture(GL_TEXTURE_2D, texture);
Expand All @@ -242,7 +242,7 @@ int Renderer::GetImageFromTexture(uint32_t texture,
glBindFramebuffer(GL_FRAMEBUFFER, 0);
glDeleteFramebuffers(1, &fbo);
return bufferSize;
}
}

void Renderer::FreeTexture(uint32_t id) { glDeleteTextures(1, &id); }

Expand Down

0 comments on commit 9193fb7

Please sign in to comment.