Ghost Context Refactor
[blender-staging.git] / source / gameengine / VideoTexture / ImageRender.cpp
index 68adb07b1f8f0806555d8f64976fb7546766acff..617e7fd1d8e5bb51a8d04c40249cf2bebf036d29 100644 (file)
 #include <math.h>
 
 
-#include "GL/glew.h"
+#include "glew-mx.h"
 
 #include "KX_PythonInit.h"
 #include "DNA_scene_types.h"
 #include "RAS_CameraData.h"
 #include "RAS_MeshObject.h"
+#include "RAS_Polygon.h"
 #include "BLI_math.h"
 
 #include "ImageRender.h"
@@ -198,7 +199,7 @@ void ImageRender::Render()
        m_canvas->SetViewPort(m_position[0], m_position[1], m_position[0]+m_capSize[0]-1, m_position[1]+m_capSize[1]-1);
        m_canvas->ClearColor(m_background[0], m_background[1], m_background[2], m_background[3]);
        m_canvas->ClearBuffer(RAS_ICanvas::COLOR_BUFFER|RAS_ICanvas::DEPTH_BUFFER);
-       m_rasterizer->BeginFrame(RAS_IRasterizer::KX_TEXTURED,m_engine->GetClockTime());
+       m_rasterizer->BeginFrame(m_engine->GetClockTime());
        m_engine->SetWorldSettings(m_scene->GetWorldInfo());
        m_rasterizer->SetAuxilaryClientInfo(m_scene);
        m_rasterizer->DisplayFog();
@@ -273,6 +274,8 @@ void ImageRender::Render()
 
        m_scene->CalculateVisibleMeshes(m_rasterizer,m_camera);
 
+       m_scene->UpdateAnimations(m_engine->GetFrameTime());
+
        m_scene->RenderBuckets(camtrans, m_rasterizer);
 
        m_scene->RenderFonts();