Skip to content
Browse files

HACK: quick test for Stage3D

To verify that the VM thread is able to draw on a texture shared with
the render thread
  • Loading branch information...
1 parent 5410cfe commit 53d5a180b826f73e18cb8986c9ea9d72f7dc58ab @alexp-sssup alexp-sssup committed
Showing with 6 additions and 1 deletion.
  1. +1 −1 src/backends/rendering.cpp
  2. +5 −0 src/scripting/abc.cpp
View
2 src/backends/rendering.cpp
@@ -1022,7 +1022,7 @@ void RenderThread::coreRendering()
renderStage3Ds();
- m_sys->getStage()->Render(*this, false);
+ //m_sys->getStage()->Render(*this, false);
assert(maskStack.empty());
if(m_sys->showProfilingData)
View
5 src/scripting/abc.cpp
@@ -1471,6 +1471,11 @@ void ABCVm::Run(ABCVm* th)
#endif
GLXContext stage3DContext = getSys()->getRenderThread()->createContext(RenderThread::SHARED);
+ getSys()->getRenderThread()->activateStage3DWithIndex(0);
+
+ glClearColor(0,1,0,1);
+ glClear(GL_COLOR_BUFFER_BIT);
+ glFinish();
while(true)
{

0 comments on commit 53d5a18

Please sign in to comment.
Something went wrong with that request. Please try again.