Skip to content

Commit

Permalink
throw RuntimeException if use filters with LightOpenGlView
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroSG94 committed Dec 19, 2023
1 parent 5b60074 commit 361d161
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,32 +144,32 @@ public Surface getSurface() {

@Override
public void setFilter(int filterPosition, BaseFilterRender baseFilterRender) {

throw new RuntimeException("Filters are not allowed when using LightOpenGlView. Replace it with OpenGlView to enable the use of filters");
}

@Override
public void addFilter(BaseFilterRender baseFilterRender) {

throw new RuntimeException("Filters are not allowed when using LightOpenGlView. Replace it with OpenGlView to enable the use of filters");
}

@Override
public void addFilter(int filterPosition, BaseFilterRender baseFilterRender) {

throw new RuntimeException("Filters are not allowed when using LightOpenGlView. Replace it with OpenGlView to enable the use of filters");
}

@Override
public void clearFilters() {

throw new RuntimeException("Filters are not allowed when using LightOpenGlView. Replace it with OpenGlView to enable the use of filters");
}

@Override
public void removeFilter(int filterPosition) {

throw new RuntimeException("Filters are not allowed when using LightOpenGlView. Replace it with OpenGlView to enable the use of filters");
}

@Override
public void removeFilter(BaseFilterRender baseFilterRender) {

throw new RuntimeException("Filters are not allowed when using LightOpenGlView. Replace it with OpenGlView to enable the use of filters");
}

@Override
Expand All @@ -184,7 +184,7 @@ public void setFilter(BaseFilterRender baseFilterRender) {

@Override
public void enableAA(boolean AAEnabled) {

throw new RuntimeException("AA are not allowed when using LightOpenGlView. Replace it with OpenGlView to enable the use of AA");
}

@Override
Expand Down

0 comments on commit 361d161

Please sign in to comment.