comparison libvo/vo_gl.c @ 31674:4996a06d9844

Cosmetics: create luma texture first, then the other textures.
author reimar
date Thu, 15 Jul 2010 18:36:15 +0000
parents 8f8c92592747
children a0a48c62bb8c
comparison
equal deleted inserted replaced
31673:cb6e9b6d8811 31674:4996a06d9844
528 mpglTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE); 528 mpglTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
529 529
530 mp_msg(MSGT_VO, MSGL_V, "[gl] Creating %dx%d texture...\n", 530 mp_msg(MSGT_VO, MSGL_V, "[gl] Creating %dx%d texture...\n",
531 texture_width, texture_height); 531 texture_width, texture_height);
532 532
533 glCreateClearTex(gl_target, gl_texfmt, gl_format, gl_type, scale_type,
534 texture_width, texture_height, 0);
535 if (mipmap_gen)
536 mpglTexParameteri(gl_target, GL_GENERATE_MIPMAP, GL_TRUE);
537
533 if (is_yuv) { 538 if (is_yuv) {
534 int i; 539 int i;
535 int xs, ys; 540 int xs, ys;
536 mp_get_chroma_shift(image_format, &xs, &ys); 541 mp_get_chroma_shift(image_format, &xs, &ys);
537 mpglGenTextures(21, default_texs); 542 mpglGenTextures(21, default_texs);
565 mpglBindProgram(GL_FRAGMENT_PROGRAM, fragprog); 570 mpglBindProgram(GL_FRAGMENT_PROGRAM, fragprog);
566 } 571 }
567 } 572 }
568 update_yuvconv(); 573 update_yuvconv();
569 } 574 }
570 glCreateClearTex(gl_target, gl_texfmt, gl_format, gl_type, scale_type,
571 texture_width, texture_height, 0);
572 if (mipmap_gen)
573 mpglTexParameteri(gl_target, GL_GENERATE_MIPMAP, GL_TRUE);
574 575
575 resize(d_width, d_height); 576 resize(d_width, d_height);
576 577
577 mpglClearColor( 0.0f,0.0f,0.0f,0.0f ); 578 mpglClearColor( 0.0f,0.0f,0.0f,0.0f );
578 mpglClear( GL_COLOR_BUFFER_BIT ); 579 mpglClear( GL_COLOR_BUFFER_BIT );