MrFrustum
05-11-2011, 03:22 AM
Hi,
i'm succesfully using GL_ARB_texture_multisample extension. Anyway, when i try to query for GL_SAMPLE_POSITION, i get always zeros. My graphic card is a Nvidia Shader Model 4.0.
Here is the code:
GLfloat pos[64];
int query = 0;
memset( pos, 0, 64 * sizeof( float ) );
glBindTexture(GL_TEXTURE_2D_MULTISAMPLE, id);
glGetTexLevelParameteriv( GL_TEXTURE_2D_MULTISAMPLE, 0, GL_TEXTURE_SAMPLES, &query );
for( GLuint i = 0; i < query; i++ )
{
glGetMultisamplefv( GL_SAMPLE_POSITION, i, &pos[i*2] );
}
glBindTexture(GL_TEXTURE_2D_MULTISAMPLE, 0);
i'm succesfully using GL_ARB_texture_multisample extension. Anyway, when i try to query for GL_SAMPLE_POSITION, i get always zeros. My graphic card is a Nvidia Shader Model 4.0.
Here is the code:
GLfloat pos[64];
int query = 0;
memset( pos, 0, 64 * sizeof( float ) );
glBindTexture(GL_TEXTURE_2D_MULTISAMPLE, id);
glGetTexLevelParameteriv( GL_TEXTURE_2D_MULTISAMPLE, 0, GL_TEXTURE_SAMPLES, &query );
for( GLuint i = 0; i < query; i++ )
{
glGetMultisamplefv( GL_SAMPLE_POSITION, i, &pos[i*2] );
}
glBindTexture(GL_TEXTURE_2D_MULTISAMPLE, 0);