Skip to content

Commit

Permalink
use findFile in opengl.cpp sample
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentBerger committed Mar 20, 2023
1 parent 0052d46 commit abfa5c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/opengl/opengl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ int main(int argc, char* argv[])
if (argc < 2)
{
cout << "Usage: " << argv[0] << " image" << endl;
filename = "../data/lena.jpg";
filename = "lena.jpg";
}
else
filename = argv[1];

Mat img = imread(filename);
Mat img = imread(samples::findFile(filename));
if (img.empty())
{
cerr << "Can't open image " << filename << endl;
Expand Down

0 comments on commit abfa5c5

Please sign in to comment.