Skip to content

Commit e787267

Browse files
committed
ofAppNoWindow macOS has issue converting pixels without GL context - io test use window for now -
1 parent ae1c941 commit e787267

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/io/loadImage/src/main.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,19 @@ class ofApp: public ofxUnitTestsApp{
1414
ofxTest(img.load("https://avatars.githubusercontent.com/u/48240?v=4"), "load from https");
1515

1616
}
17+
1718
};
1819

1920
//========================================================================
2021
int main( ){
2122
ofInit();
22-
auto window = std::make_shared<ofAppNoWindow>();
23+
24+
ofGLWindowSettings settings;
25+
settings.setSize(1200, 600);
26+
settings.windowMode = OF_WINDOW; //can also be OF_FULLSCREEN
27+
28+
auto window = ofCreateWindow(settings);
29+
// auto window = std::make_shared<ofAppNoWindow>(); // cant be no window doing GL stuff or bug
2330
auto app = std::make_shared<ofApp>();
2431
// this kicks off the running of my app
2532
// can be OF_WINDOW or OF_FULLSCREEN

0 commit comments

Comments
 (0)