diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 4fc27126..a5c474d8 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -7,6 +7,7 @@ video tutorials. - Bobyshev Alexander - Laurent Aphecetche + - Dimitris Apostolou - Matt Arsenault - Takuro Ashie - ashishgamedev diff --git a/README.md b/README.md index 52306188..ee49fb12 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,7 @@ information on what to include when reporting a bug. - Added `GLFW_UNLIMITED_MOUSE_BUTTONS` input mode that allows mouse buttons beyond the limit of the mouse button tokens to be reported (#2423) - Updated minimum CMake version to 3.16 (#2541) + - Fixed uninitialized variable rgba - [Cocoa] Added `QuartzCore` framework as link-time dependency - [Cocoa] Removed support for OS X 10.10 Yosemite and earlier (#2506) - [Wayland] Bugfix: The fractional scaling related objects were not destroyed diff --git a/examples/particles.c b/examples/particles.c index baafe826..30b37f4c 100644 --- a/examples/particles.c +++ b/examples/particles.c @@ -487,6 +487,8 @@ static void draw_particles(GLFWwindow* window, double t, float dt) if (alpha > 1.f) alpha = 1.f; + rgba = 0; + // Convert color from float to 8-bit (store it in a 32-bit // integer using endian independent type casting) ((GLubyte*) &rgba)[0] = (GLubyte)(pptr->r * 255.f);