Skip to content

Commit 90adec8

Browse files
committed
filter(): fix missing closing brace and glDrawPixels call
1 parent 6156a2b commit 90adec8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/Processing.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2777,7 +2777,10 @@ void PApplet::filter(int mode, float param) {
27772777
buf[i]=buf[i+1]=buf[i+2]=(unsigned char)best;
27782778
}
27792779
}
2780-
2780+
#ifndef __EMSCRIPTEN__
2781+
glDrawPixels(w, h, GL_RGBA, GL_UNSIGNED_BYTE, buf.data());
2782+
#endif
2783+
}
27812784
void PApplet::updatePixels() {
27822785
int total = winWidth * winHeight;
27832786
::std::vector<unsigned char> rgba(total * 4);

0 commit comments

Comments
 (0)