Fix #31273: videotexture ImageRender not working in blenderplayer.

This commit is contained in:
Brecht Van Lommel 2012-05-03 14:59:42 +00:00
parent 13e97f86d0
commit 885c4a6e78

@ -88,6 +88,12 @@ void GPC_Canvas::Resize(int width, int height)
{ {
m_width = width; m_width = width;
m_height = height; m_height = height;
// initialize area so that it's available for game logic on frame 1 (ImageViewport)
m_displayarea.m_x1 = 0;
m_displayarea.m_y1 = 0;
m_displayarea.m_x2 = width;
m_displayarea.m_y2 = height;
} }
void GPC_Canvas::EndFrame() void GPC_Canvas::EndFrame()