Page 1 of 1

RebelSDL drawing alpha circle in doublebuffer(true) crashes program.

Posted: Mon Sep 25, 2023 5:40 pm
by Bugala
Here the minimum code:

Code: Select all

@REQUIRE "rebelsdl"

BeginDoubleBuffer(True)


Circle(100, 100, 200, ARGB(128, $aaaaaa))
Flip()
WaitRightMouse()
Hollywood 9.1 Windows 10

Two problems with this.

1. It crashes
2. It doesnt show any error.

Is this supposed to be so? I understood that when using the Circle command on RebelSDL it would revert to using Hollywoods own drawing instead of RebelSDL, since RebelSDL doesnt support drawing a circle.

Also, this only happens when trying to draw alpha circle. If I use instead of "ARGB(128, $aaaaaa)" - "#WHITE" as example, it will work fine, so seems to be alpha channel usage the issue.

Re: RebelSDL drawing alpha circle in doublebuffer(true) crashes program.

Posted: Tue Oct 03, 2023 12:30 pm
by airsoftsoftwair
Bugala wrote: Mon Sep 25, 2023 5:40 pm Is this supposed to be so?
Nope, this is clearly a bug. Will be fixed.

Re: RebelSDL drawing alpha circle in doublebuffer(true) crashes program.

Posted: Tue Oct 03, 2023 5:39 pm
by Bugala
Just noticed this same problem is with GLGalore as well.

Just using DoubleBuffer without @REQUIRE for RebelSDL or GLGalore, however, works right in Windows.

Re: RebelSDL drawing alpha circle in doublebuffer(true) crashes program.

Posted: Tue Oct 10, 2023 9:06 pm
by airsoftsoftwair
Bugala wrote: Tue Oct 03, 2023 5:39 pm Just noticed this same problem is with GLGalore as well.
Yes, that's no surprise because it uses the same plugin interface as RebelSDL.

Re: RebelSDL drawing alpha circle in doublebuffer(true) crashes program.

Posted: Sun Jul 21, 2024 10:20 pm
by airsoftsoftwair

Code: Select all

- Fix: Crash when using a hardware double buffer and drawing single-color graphics primitives with alpha transparency to it