diff options
Diffstat (limited to 'examples/web/textures/textures_image_processing.c')
| -rw-r--r-- | examples/web/textures/textures_image_processing.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/web/textures/textures_image_processing.c b/examples/web/textures/textures_image_processing.c index 7e77987..5f7f330 100644 --- a/examples/web/textures/textures_image_processing.c +++ b/examples/web/textures/textures_image_processing.c @@ -143,9 +143,9 @@ void UpdateDrawFrame(void) default: break; } - Color *pixels = GetImageData(image); // Get pixel data from image (RGBA 32bit) + Color *pixels = LoadImageColors(image); // Get pixel data from image (RGBA 32bit) UpdateTexture(texture, pixels); // Update texture with new image data - free(pixels); // Unload pixels data from RAM + UnloadImageColors(pixels); // Unload pixels data from RAM textureReload = false; } |
