(glcore) memset is unnecessary

This commit is contained in:
twinaphex 2019-08-12 20:55:46 +02:00
parent 2a631bd031
commit fdd45f1f6b
1 changed files with 13 additions and 11 deletions

View File

@ -312,7 +312,7 @@ static void gl_core_render_overlay(gl_core_t *gl, video_frame_info_t *video_info
}
#endif
#define gl_core_context_bind_hw_render(*gl, enable) \
#define gl_core_context_bind_hw_render(gl, enable) \
if (gl->use_shared_context) \
gl->ctx_driver->bind_hw_render(gl->ctx_data, enable)
@ -1629,10 +1629,12 @@ static bool gl_core_frame(void *data, const void *frame,
gl_core_set_viewport(gl, video_info->width, video_info->height, false, true);
memset(&texture, 0, sizeof(texture));
texture.image = 0;
texture.width = streamed->width;
texture.height = streamed->height;
texture.padded_width = 0;
texture.padded_height = 0;
texture.format = 0;
if (gl->hw_render_enable)
{
texture.image = gl->hw_render_texture;