fixups for plugins interpolate, c41
[goodguy/history.git] / cinelerra-5.0 / plugins / interpolate / aggregated.h
index 385abe1ac82e6313c2b2e76c0f76e73b185e8f21..42eb6c4c51aab54e61efcbe79191256e3b25c70a 100644 (file)
@@ -146,6 +146,8 @@ static const char *interpolate_shader =
        int x_offset = get_output()->get_params()->get("INTERPOLATEPIXELS_X", (int)0); \
        int y_offset = get_output()->get_params()->get("INTERPOLATEPIXELS_Y", (int)0); \
        float color_matrix[9]; \
+       for( int i=0; i<9; ++i ) color_matrix[i] = 0; \
+       for( int i=0; i<3; ++i ) color_matrix[i*3 + i] = 1; \
        char string[BCTEXTLEN]; \
        string[0] = 0; \
        get_output()->get_params()->get("DCRAW_MATRIX", string); \