Hi All,
I have a problem since I’ve updated the NVIDIA drivers today.
I had some code using image load/store working perfectly. This code used 2D and 3D textures created with muttable storage, i.e. with glTexImage.
Today, after the driver update, all the examples using 2D textures stopped working. Looking at previous versions and testing them I found out the if I created the texture with immutable storage using glTexStorage everything is back to normal and working properly.
The code I use to create the texture storage is as follows:
if (immutable) {
glTexStorage2D(m_EnumProps[DIMENSION], m_IntProps[LEVELS], m_EnumProps[INTERNAL_FORMAT],
m_IntProps[WIDTH], m_IntProps[HEIGHT]);
}
else {
glTexImage2D(m_EnumProps[DIMENSION], 0, m_EnumProps[INTERNAL_FORMAT],
m_IntProps[WIDTH], m_IntProps[HEIGHT], 0,
m_EnumProps[FORMAT], m_EnumProps[TYPE], NULL);
}
If immutable is true then image load/store works, otherwise it doesn’t. This is only for the 2D textures, 3D textures are working as before.
I’ve searched the wiki pages and man pages and found nothing mentioning that in order to bind an image texture the texture storage had to be immutable.
Am I missing something? Does anyone have the same issue?
Thanks,
António