Commit 57bff43a authored by Vladimir Dudnik's avatar Vladimir Dudnik

fixed not initialized nv12_cpu_copy surface, remove odd code

parent 157c94c0
...@@ -111,6 +111,7 @@ public: ...@@ -111,6 +111,7 @@ public:
m_pSurfaceRGBA = 0; m_pSurfaceRGBA = 0;
m_pSurfaceNV12 = 0; m_pSurfaceNV12 = 0;
m_pSurfaceNV12_cpu_copy = 0;
D3D11_TEXTURE2D_DESC desc_rgba; D3D11_TEXTURE2D_DESC desc_rgba;
......
...@@ -175,10 +175,10 @@ static const char* keys = ...@@ -175,10 +175,10 @@ static const char* keys =
template <typename TApp> template <typename TApp>
int d3d_app(int argc, char** argv, std::string& title) int d3d_app(int argc, char** argv, std::string& title)
{ {
cv::CommandLineParser parser(argc, argv, keys); \ cv::CommandLineParser parser(argc, argv, keys);
bool useCamera = parser.has("camera"); \ bool useCamera = parser.has("camera");
string file = parser.get<string>("file"); \ string file = parser.get<string>("file");
bool showHelp = parser.get<bool>("help"); \ bool showHelp = parser.get<bool>("help");
if (showHelp) if (showHelp)
help(); help();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment