Skip to content

Commit

Permalink
revert obs-convenience to obs-studio 26.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
norihiro committed May 6, 2021
1 parent 96cc93f commit e8c2eaa
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/obs-convenience.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,6 @@ void draw_uv_vbuffer(gs_vertbuffer_t *vbuf, gs_texture_t *tex,
if (vbuf == NULL || tex == NULL)
return;

const bool linear_srgb = gs_get_linear_srgb();

const bool previous = gs_framebuffer_srgb_enabled();
gs_enable_framebuffer_srgb(linear_srgb);

gs_vertexbuffer_flush(vbuf);
gs_load_vertexbuffer(vbuf);
gs_load_indexbuffer(NULL);
Expand All @@ -80,10 +75,7 @@ void draw_uv_vbuffer(gs_vertbuffer_t *vbuf, gs_texture_t *tex,

for (size_t i = 0; i < passes; i++) {
if (gs_technique_begin_pass(tech, i)) {
if (linear_srgb)
gs_effect_set_texture_srgb(image, texture);
else
gs_effect_set_texture(image, texture);
gs_effect_set_texture(image, texture);

gs_draw(GS_TRIS, 0, num_verts);

Expand All @@ -92,6 +84,4 @@ void draw_uv_vbuffer(gs_vertbuffer_t *vbuf, gs_texture_t *tex,
}

gs_technique_end(tech);

gs_enable_framebuffer_srgb(previous);
}

0 comments on commit e8c2eaa

Please sign in to comment.