Skip to content

Commit 723d4a5

Browse files
committed
Fix OpenGL not rendering.
1 parent cc2fc25 commit 723d4a5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

RemoteInput/Plugin/Graphics.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ void gl_draw_image_modern(void* ctx, void* source_buffer, float x, float y, std:
751751
}
752752
}(format);
753753

754-
auto convert = []<typename S>(S source, std::int32_t width, std::int32_t height, std::int32_t stride, ImageFormat format) {
754+
auto convert = []<typename S>(S* source, std::int32_t width, std::int32_t height, std::int32_t stride, ImageFormat format) {
755755
if constexpr(std::is_same<S, bgr_bgra_t>::value)
756756
{
757757
for (std::int32_t i = 0; i < width * height * stride; i += stride)
@@ -957,7 +957,7 @@ void gl_draw_image(void* ctx, void* source_buffer, float x, float y, std::int32_
957957
}
958958
}(format);
959959

960-
auto convert = []<typename S>(S source, std::int32_t width, std::int32_t height, std::int32_t stride, ImageFormat format) {
960+
auto convert = []<typename S>(S* source, std::int32_t width, std::int32_t height, std::int32_t stride, ImageFormat format) {
961961
if constexpr(std::is_same<S, bgr_bgra_t>::value)
962962
{
963963
for (std::int32_t i = 0; i < width * height * stride; i += stride)

0 commit comments

Comments
 (0)