Skip to content

Commit

Permalink
improvement(sdlVideoRender): fix bug that captureScreen() capture pre…
Browse files Browse the repository at this point in the history
…vious frame instead of the current frame
  • Loading branch information
kongjianneu authored and pingkai committed Aug 24, 2020
1 parent cab40e5 commit f0701e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/render/video/SdlAFVideoRender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ void SdlAFVideoRender::captureScreen(std::function<void(uint8_t *data, int width
AF_LOGE("Texture could not be created! SDL_Error: %s\n", SDL_GetError());
return;
}

refreshScreen();
Uint32 surfaceFormat = surface->format->format;
{
std::unique_lock<std::mutex> lock(mRenderMutex);
Expand Down

0 comments on commit f0701e0

Please sign in to comment.