Fixed double clicking on video

Originally committed to SVN as r1074.
This commit is contained in:
Rodrigo Braz Monteiro 2007-04-13 20:21:37 +00:00
parent 4b569de80d
commit 9292b79e1d
1 changed files with 1 additions and 0 deletions

View File

@ -550,6 +550,7 @@ GLuint VideoContext::GetFrameAsTexture(int n) {
} }
// Load texture data // Load texture data
glBindTexture(GL_TEXTURE_2D, lastTex);
glTexSubImage2D(GL_TEXTURE_2D,0,0,0,frame.pitch[0]/frame.GetBpp(0),frame.h,format,GL_UNSIGNED_BYTE,frame.data[0]); glTexSubImage2D(GL_TEXTURE_2D,0,0,0,frame.pitch[0]/frame.GetBpp(0),frame.h,format,GL_UNSIGNED_BYTE,frame.data[0]);
if (glGetError() != 0) throw _T("Error uploading primary plane"); if (glGetError() != 0) throw _T("Error uploading primary plane");