mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-28 03:44:52 +08:00
Fix potentially uninitialized variable warnings
This commit is contained in:
@@ -86,7 +86,7 @@ void bounds_get_center(struct vec3 *dst, const struct bounds *b)
|
||||
void bounds_transform(struct bounds *dst, const struct bounds *b,
|
||||
const struct matrix4 *m)
|
||||
{
|
||||
struct bounds temp;
|
||||
struct bounds temp = {0};
|
||||
bool b_init = false;
|
||||
int i;
|
||||
|
||||
@@ -123,7 +123,7 @@ void bounds_transform(struct bounds *dst, const struct bounds *b,
|
||||
void bounds_transform3x4(struct bounds *dst, const struct bounds *b,
|
||||
const struct matrix3 *m)
|
||||
{
|
||||
struct bounds temp;
|
||||
struct bounds temp = {0};
|
||||
bool b_init = false;
|
||||
int i;
|
||||
|
||||
|
||||
+1
-1
@@ -997,7 +997,7 @@ static void obs_source_draw_async_texture(struct obs_source *source)
|
||||
bool limited_range = yuv && !source->async_full_range;
|
||||
const char *type = yuv ? "DrawMatrix" : "Draw";
|
||||
bool def_draw = (!effect);
|
||||
technique_t tech;
|
||||
technique_t tech = NULL;
|
||||
|
||||
if (def_draw) {
|
||||
effect = obs_get_default_effect();
|
||||
|
||||
Reference in New Issue
Block a user