Renderer: call updateStreams AFTER makeCurrent.
When using the OpenGL backend, updateStreams makes GL calls such as glEGLImageTargetTexture2DOES and therefore requires a valid GL context.
This commit is contained in:
@@ -492,12 +492,12 @@ bool FRenderer::beginFrame(FSwapChain* swapChain, backend::FrameFinishedCallback
|
||||
FEngine& engine = getEngine();
|
||||
FEngine::DriverApi& driver = engine.getDriverApi();
|
||||
|
||||
// NOTE: this makes synchronous calls to the driver
|
||||
driver.updateStreams(&driver);
|
||||
|
||||
mSwapChain = swapChain;
|
||||
swapChain->makeCurrent(driver);
|
||||
|
||||
// NOTE: this makes synchronous calls to the driver
|
||||
driver.updateStreams(&driver);
|
||||
|
||||
int64_t monotonic_clock_ns (std::chrono::steady_clock::now().time_since_epoch().count());
|
||||
driver.beginFrame(monotonic_clock_ns, mFrameId, callback, user);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user