Skip to content

Commit 2cc12df

Browse files
committed
always create canvas for offscreen graphics, fixes #311
1 parent 356543b commit 2cc12df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/processing/a2d/PGraphicsAndroid2D.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public void requestDraw() {
170170

171171

172172
protected Canvas checkCanvas() {
173-
if (canvas == null && useBitmap) {
173+
if (canvas == null && (useBitmap || !primaryGraphics)) {
174174
if (bitmap != null) bitmap.recycle();
175175
bitmap = Bitmap.createBitmap(width, height, Config.ARGB_8888);
176176
canvas = new Canvas(bitmap);

0 commit comments

Comments
 (0)