Forráskód Böngészése

libobs-d3d11: Set texture using initializer list

Richard Stanway 6 éve
szülő
commit
7f1f97a61f
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      libobs-d3d11/d3d11-texture2d.cpp

+ 2 - 2
libobs-d3d11/d3d11-texture2d.cpp

@@ -256,9 +256,9 @@ gs_texture_2d::gs_texture_2d(gs_device_t *device, ID3D11Texture2D *nv12tex,
 	  isDynamic((flags_ & GS_DYNAMIC) != 0),
 	  isShared((flags_ & SHARED_FLAGS) != 0),
 	  genMipmaps((flags_ & GS_BUILD_MIPMAPS) != 0),
-	  nv12(true)
+	  nv12(true),
+	  texture(nv12tex)
 {
-	texture = nv12tex;
 	texture->GetDesc(&td);
 
 	this->type = GS_TEXTURE_2D;