required change for ESP-IDF 6 (#5674)

This commit is contained in:
Juraj Michálek 2026-03-19 23:19:44 +01:00 • committed by GitHub
commit bca4f83a02
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 22 additions and 0 deletions

10
src/external/rlsw.h vendored
View file

@ -689,6 +689,7 @@ SWAPI void swClear(uint32_t bitmask);
SWAPI void swBlendFunc(SWfactor sfactor, SWfactor dfactor);
SWAPI void swPolygonMode(SWpoly mode);
SWAPI void swCullFace(SWface face);
SWAPI void *swGetColorBuffer(int *width, int *height); // Restored for ESP-IDF compatibility
SWAPI void swPointSize(float size);
SWAPI void swLineWidth(float width);
@ -4200,6 +4201,15 @@ void swCullFace(SWface face)
RLSW.cullFace = face;
}
// Get direct pointer to the default framebuffer's pixel data
// Restored for ESP-IDF compatibility - removed in Raylib 6.0 PR #5655
void *swGetColorBuffer(int *width, int *height)
{
if (width) *width = RLSW.colorBuffer->width;
if (height) *height = RLSW.colorBuffer->height;
return RLSW.colorBuffer->pixels;
}
void swPointSize(float size)
{
RLSW.pointRadius = floorf(size*0.5f);