Browse Source

libobs-d3d11: Actually use paired NV12 member variable

jp9000 6 years ago
parent
commit
86f82c952a
1 changed files with 3 additions and 0 deletions
  1. 3 0
      libobs-d3d11/d3d11-subsystem.cpp

+ 3 - 0
libobs-d3d11/d3d11-subsystem.cpp

@@ -2220,6 +2220,9 @@ extern "C" EXPORT bool device_texture_create_nv12(gs_device_t *device,
 		return false;
 		return false;
 	}
 	}
 
 
+	tex_y->pairedNV12texture = tex_uv;
+	tex_uv->pairedNV12texture = tex_y;
+
 	*p_tex_y = tex_y;
 	*p_tex_y = tex_y;
 	*p_tex_uv = tex_uv;
 	*p_tex_uv = tex_uv;
 	return true;
 	return true;