Skip to content

Commit

Permalink
Revert miscommited lines.
Browse files Browse the repository at this point in the history
  • Loading branch information
luigifcruz committed Aug 1, 2024
1 parent dcd27a4 commit a08b987
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/modules/remote/generic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -449,8 +449,6 @@ GstFlowReturn Remote<D, T>::OnSampleCallback(GstElement* sink, gpointer data) {
GstMapInfo map;
gst_buffer_map(buffer, &map, GST_MAP_READ);

JST_TRACE("new frame");

{
std::lock_guard<std::mutex> lock(that->localFramebufferMutex);
memcpy(that->remoteFramebufferMemory.data(), map.data, map.size);
Expand Down Expand Up @@ -536,7 +534,7 @@ Result Remote<D, T>::createPresent() {

{
Render::Vertex::Config cfg;
cfg.vertices = {
cfg.buffers = {
{fillScreenVerticesBuffer, 3},
{fillScreenTextureVerticesBuffer, 2},
};
Expand All @@ -562,9 +560,7 @@ Result Remote<D, T>::createPresent() {
{
Render::Program::Config cfg;
cfg.shaders = ShadersPackage["framebuffer"];
cfg.draws = {
drawVertex,
};
cfg.draw = drawVertex;
cfg.textures = {remoteFramebufferTexture};
JST_CHECK(window->build(program, cfg));
}
Expand Down

0 comments on commit a08b987

Please sign in to comment.