Skip to content

Commit eb2d978

Browse files
committed
Fix rendertexture -> render texture typos
1 parent 8efdda4 commit eb2d978

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

liboscar/Graphics/GraphicsImplementation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8074,7 +8074,7 @@ void osc::GraphicsBackend::copy_texture(
80748074
// create a source (read) framebuffer for blitting from the source render texture
80758075
gl::FrameBuffer read_fbo;
80768076
gl::bind_framebuffer(GL_READ_FRAMEBUFFER, read_fbo);
8077-
std::visit(Overload{ // attach source texture depending on rendertexture's type
8077+
std::visit(Overload{ // attach source texture depending on render texture's type
80788078
[](SingleSampledTexture& t)
80798079
{
80808080
gl::framebuffer_texture2D(

liboscar/Graphics/Scene/SceneRenderer.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -673,10 +673,10 @@ class osc::SceneRenderer::Impl final {
673673
graphics::draw(maybe_rims->mesh, maybe_rims->transform, maybe_rims->material, camera_);
674674
}
675675

676-
output_rendertexture_.set_pixel_dimensions(params.device_pixel_ratio * params.dimensions);
677-
output_rendertexture_.set_device_pixel_ratio(params.device_pixel_ratio);
678-
output_rendertexture_.set_anti_aliasing_level(params.anti_aliasing_level);
679-
camera_.render_to(output_rendertexture_);
676+
output_render_texture_.set_pixel_dimensions(params.device_pixel_ratio * params.dimensions);
677+
output_render_texture_.set_device_pixel_ratio(params.device_pixel_ratio);
678+
output_render_texture_.set_anti_aliasing_level(params.anti_aliasing_level);
679+
camera_.render_to(output_render_texture_);
680680

681681
// prevents copies on next frame
682682
edge_detection_material_.unset("uScreenTexture");
@@ -686,7 +686,7 @@ class osc::SceneRenderer::Impl final {
686686

687687
RenderTexture& upd_render_texture()
688688
{
689-
return output_rendertexture_;
689+
return output_render_texture_;
690690
}
691691

692692
private:
@@ -781,7 +781,7 @@ class osc::SceneRenderer::Impl final {
781781
}
782782

783783
// configure the off-screen solid-colored texture
784-
rims_rendertexture_.reformat({
784+
rims_render_texture_.reformat({
785785
.pixel_dimensions = params.device_pixel_ratio * params.dimensions,
786786
.device_pixel_ratio = params.device_pixel_ratio,
787787
.anti_aliasing_level = params.anti_aliasing_level,
@@ -790,15 +790,15 @@ class osc::SceneRenderer::Impl final {
790790
// render to the off-screen solid-colored texture
791791
camera_.render_to(RenderTarget{
792792
RenderTargetColorAttachment{
793-
.buffer = rims_rendertexture_.upd_color_buffer(),
793+
.buffer = rims_render_texture_.upd_color_buffer(),
794794
},
795795
});
796796

797797
// configure a material that draws the off-screen colored texture on-screen
798798
//
799799
// the off-screen texture is rendered as a quad via an edge-detection kernel
800800
// that transforms the solid shapes into "rims"
801-
edge_detection_material_.set("uScreenTexture", rims_rendertexture_.upd_color_buffer());
801+
edge_detection_material_.set("uScreenTexture", rims_render_texture_.upd_color_buffer());
802802
static_assert(SceneRendererParams::num_rim_groups() == 2);
803803
edge_detection_material_.set("uRim0Color", params.rim_group_colors[0]);
804804
edge_detection_material_.set("uRim1Color", params.rim_group_colors[1]);
@@ -867,11 +867,11 @@ class osc::SceneRenderer::Impl final {
867867

868868
Mesh quad_mesh_;
869869
Camera camera_;
870-
RenderTexture rims_rendertexture_;
870+
RenderTexture rims_render_texture_;
871871
SharedDepthStencilRenderBuffer shadow_map_render_buffer_{DepthStencilRenderBufferParams{
872872
.pixel_dimensions = {1024, 1024},
873873
}};
874-
RenderTexture output_rendertexture_;
874+
RenderTexture output_render_texture_;
875875
};
876876

877877

0 commit comments

Comments
 (0)