cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

blabz2007
Journeyman III

glTexImage2DMultisample

Hello -

First off, thank you AMD for a great product! Very helpful and the best there is at the moment

I'm making the following calls in my application

glBindTexture(GL_TEXTURE_2D_MULTISAMPLE, MSAALuminance)
glTexImage2DMultisample( GL_TEXTURE_2D_MULTISAMPLE,6, GL_RED, GWidth, GHeight, False )

In CodeXL I receive the following exception

The thread tried to read from or write to a virtual address to which it does not have access.


Does CodeXL not have support for this extension?



0 Likes
1 Reply

Hi blabz2007.

We have managed to reproduce the issue in our labs. However, at least in our case, the application crashes with this exception code even if it is called outside CodeXL.

It seems like the AMD driver has an issue where if you request a NPoT number of samples, the call to glTexImage2DMultisample causes a crash (instead of simply "rounding" up to the next allowed number of samples, as the spec says). I have notified the OpenGL driver team of this issue.

In the meantime, you can just place the correct value (1, 2, 4, or 8 - seeing as your code says it needs 6 samples, I'd guess 8 would be the correct choice) in the function call, to avoid the crash.

Hope this helps,

0 Likes