Fix for non-pixelshader video rendering

Originally committed to SVN as r961.
This commit is contained in:
Niels Martin Hansen 2007-03-28 15:17:47 +00:00
parent b44540e63f
commit 4e7ddbbe85
1 changed files with 1 additions and 1 deletions

View File

@ -474,7 +474,7 @@ GLuint VideoContext::GetFrameAsTexture(int n) {
}
// Load texture data
glTexSubImage2D(GL_TEXTURE_2D,0,0,0,frame.pitch[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");
// UV planes for YV12