Skip to content

Commit

Permalink
[GL] Fixed compile error in GLCommandAssembler.cpp.
Browse files Browse the repository at this point in the history
Added missing '#include'-directive and fixed typo for new GLCmdResolveRenderTarget command.
  • Loading branch information
LukasBanana committed Jul 5, 2024
1 parent f9420ed commit 561e6ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sources/Renderer/OpenGL/Command/GLCommandAssembler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include "../Shader/GLShaderUniform.h"

#include "../Texture/GLTexture.h"
#include "../Texture/GLRenderTarget.h"
#include "../Texture/GLMipGenerator.h"
#include "../Texture/GLFramebufferCapture.h"
#ifdef LLGL_GL_ENABLE_OPENGL2X
Expand Down Expand Up @@ -196,7 +197,7 @@ static std::size_t AssembleGLCommand(const GLOpcode opcode, const void* pc, JITC
case GLOpcodeResolveRenderTarget:
{
auto cmd = reinterpret_cast<const GLCmdResolveRenderTarget*>(pc);
compiler.CallMember(&GLRenderTarget::ResolveMultisampled, pc->renderTarget, g_stateMngrArg);
compiler.CallMember(&GLRenderTarget::ResolveMultisampled, cmd->renderTarget, g_stateMngrArg);
return sizeof(*cmd);
}
case GLOpcodeBindVertexArray:
Expand Down

0 comments on commit 561e6ab

Please sign in to comment.