From 81548622cc23144a9f5574ff0485472bea7bf1c3 Mon Sep 17 00:00:00 2001 From: Dany LE Date: Tue, 15 Feb 2022 20:32:33 +0100 Subject: [PATCH] avoid uninitialize value --- Diya/OpenGLSL.class.st | 1 + 1 file changed, 1 insertion(+) diff --git a/Diya/OpenGLSL.class.st b/Diya/OpenGLSL.class.st index ee47fe6..83bb4f5 100644 --- a/Diya/OpenGLSL.class.st +++ b/Diya/OpenGLSL.class.st @@ -117,6 +117,7 @@ OpenGLSL >> checkStatus:status of: id [ |infoLength buffer result| result := FFIExternalArray externalNewType: GLint size: 1. infoLength := FFIExternalArray externalNewType: GLint size: 1. + infoLength at: 1 put: 0. infoLength autoRelease. result autoRelease. OpenGLSL getShaderiv: id parameterName: status params: result getHandle.