X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=ycbcr_input.cpp;h=b0ca69291198fc69b7badc37b35b30d92741930c;hp=071ce134833151b33bbb9cce800c1971143106dc;hb=274627c966f53780991e9f80887aa1906b592751;hpb=9c6b86affb570a2e2d18c6da795c359da393f9a3 diff --git a/ycbcr_input.cpp b/ycbcr_input.cpp index 071ce13..b0ca692 100644 --- a/ycbcr_input.cpp +++ b/ycbcr_input.cpp @@ -62,7 +62,7 @@ void YCbCrInput::set_gl_state(GLuint glsl_program_num, const string& prefix, uns glActiveTexture(GL_TEXTURE0 + *sampler_num + channel); check_error(); - if (texture_num[channel] == 0) { + if (texture_num[channel] == 0 && (pbos[channel] != 0 || pixel_data[channel] != NULL)) { GLenum format, internal_format; if (channel == 1 && ycbcr_input_splitting == YCBCR_INPUT_SPLIT_Y_AND_CBCR) { format = GL_RG;