Skip to content

Commit 3aaf6bc

Browse files
committed
format
1 parent 00dc8e2 commit 3aaf6bc

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

src/ruis/render/opengles/frame_buffer.cpp

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,13 @@ frame_buffer::frame_buffer( //
6868
// NOLINTNEXTLINE(cppcoreguidelines-pro-type-static-cast-downcast)
6969
auto& tex = static_cast<texture_2d&>(*this->color);
7070

71-
glFramebufferTexture2D(GL_FRAMEBUFFER,//
72-
GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, tex.tex, 0);
71+
glFramebufferTexture2D(
72+
GL_FRAMEBUFFER, //
73+
GL_COLOR_ATTACHMENT0,
74+
GL_TEXTURE_2D,
75+
tex.tex,
76+
0
77+
);
7378
assert_opengl_no_error();
7479
}
7580

@@ -78,8 +83,13 @@ frame_buffer::frame_buffer( //
7883
// NOLINTNEXTLINE(cppcoreguidelines-pro-type-static-cast-downcast)
7984
auto& tex = static_cast<texture_depth&>(*this->depth);
8085

81-
glFramebufferTexture2D(GL_FRAMEBUFFER,//
82-
GL_DEPTH_ATTACHMENT, GL_TEXTURE_2D, tex.tex, 0);
86+
glFramebufferTexture2D(
87+
GL_FRAMEBUFFER, //
88+
GL_DEPTH_ATTACHMENT,
89+
GL_TEXTURE_2D,
90+
tex.tex,
91+
0
92+
);
8393
assert_opengl_no_error();
8494
}
8595

src/ruis/render/opengles/texture_depth.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ texture_depth::texture_depth(
4848
// - framebuffer with such depth attachment fails test for being complete. And WebGL prints warning.
4949
// - WebGL texImage2D() prints warning: "Invalid internalformat: 0x81a5"
5050

51-
// And iOS also needs this one instead of GL_DEPTH_COMPONENT16.
51+
// And iOS also needs this one instead of GL_DEPTH_COMPONENT16.
5252

53-
GL_DEPTH_COMPONENT, // internal format
53+
GL_DEPTH_COMPONENT, // internal format
5454
#else
5555
GL_DEPTH_COMPONENT16, // internal format
5656
#endif

0 commit comments

Comments
 (0)