mirror of
https://github.com/open-goal/jak-project
synced 2026-06-23 17:35:19 -04:00
f0b46ff2e5
A few minor fixes: - Fix crash in overlord3 during final boss https://github.com/open-goal/jak-project/issues/3605 - Update goal_src for `scene-actor.gc`, which was not updated after a bug fix for decompiling skelgroups, making some cutscene actors invisible due to using the wrong joint for culling checks. - Stop using `-1` as an invalid value for texture id's in Merc.cpp. This could sometimes cause Merc2.cpp to accidentally skip updating the OpenGL texture. This fixes the bug where skull gems sometimes didn't have the animated textures.
31 lines
1.1 KiB
C++
31 lines
1.1 KiB
C++
#include "Generic2BucketRenderer.h"
|
|
|
|
Generic2BucketRenderer::Generic2BucketRenderer(const std::string& name,
|
|
int id,
|
|
std::shared_ptr<Generic2> renderer,
|
|
Generic2::Mode mode)
|
|
: BucketRenderer(name, id), m_generic(renderer), m_mode(mode) {}
|
|
|
|
void Generic2BucketRenderer::draw_debug_window() {
|
|
m_generic->draw_debug_window();
|
|
}
|
|
|
|
void Generic2BucketRenderer::render(DmaFollower& dma,
|
|
SharedRenderState* render_state,
|
|
ScopedProfilerNode& prof) {
|
|
// if the user has asked to disable the renderer, just advance the dma follower to the next
|
|
// bucket and return immediately.
|
|
if (!m_enabled) {
|
|
while (dma.current_tag_offset() != render_state->next_bucket) {
|
|
dma.read_and_advance();
|
|
}
|
|
return;
|
|
}
|
|
m_generic->render_in_mode(dma, render_state, prof, m_mode);
|
|
m_empty = m_generic->empty();
|
|
}
|
|
|
|
bool Generic2BucketRenderer::empty() const {
|
|
return m_empty;
|
|
}
|