OpenGLGadget and AccumulationBuffer IMA
Posted: Thu Feb 05, 2026 10:28 am
PBv6.30, Raspberry Pi OS (arm64, Debian 13, Wayland, P500)
I wanted to try out some examples with OpenGLGadget, and that's when I noticed this error.
I don't know if the abbreviated code is correct, but there is a memory access error with the parameters for AccumulationBuffer.
Peter
I wanted to try out some examples with OpenGLGadget, and that's when I noticed this error.
I don't know if the abbreviated code is correct, but there is a memory access error with the parameters for AccumulationBuffer.
Peter
Code: Select all
If OpenWindow(0, 50, 50, 400, 300, "OpenGL-Test")
; If OpenGLGadget(0, 0, 0, 300, 400, #PB_OpenGL_8BitStencilBuffer | #PB_OpenGL_24BitDepthBuffer | #PB_OpenGL_32BitAccumulationBuffer)
If OpenGLGadget(0, 0, 0, 300, 400, #PB_OpenGL_32BitAccumulationBuffer)
; If OpenGLGadget(0, 0, 0, 300, 400, #PB_OpenGL_64BitAccumulationBuffer)
; If OpenGLGadget(0, 0, 0, 400, 300)
AddWindowTimer(0, 0, 32)
Repeat
Select WaitWindowEvent()
Case #PB_Event_Timer
Select EventTimer()
Case 0
SetGadgetAttribute(0, #PB_OpenGL_SetContext, #True) ; [ERROR] Invalid memory access.
SetGadgetAttribute(0, #PB_OpenGL_FlipBuffers, #True)
EndSelect
Case #PB_Event_CloseWindow
Break
EndSelect
ForEver
EndIf
EndIf