Skip to content

Commit c382ed2

Browse files
authored
correct check for shadows support (#7354)
#changelog #gl
1 parent dd68420 commit c382ed2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/gl/shadowsExample/src/ofApp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ void ofApp::draw(){
200200

201201
if( !ofIsGLProgrammableRenderer() ) {
202202
ss << endl << "SHADOWS ONLY WORK WITH PROGRAMMABLE RENDERER!" << endl;
203-
} else if( ofShadow::areShadowsSupported() ) {
203+
} else if( !ofShadow::areShadowsSupported() ) {
204204
ss << endl << "SHADOWS NOT SUPPORTED ON THIS PLATFORM!" << endl;
205205
} else {
206206
ss << "Shadows enabled (spacebar): " << bEnableShadows;

0 commit comments

Comments
 (0)