All pastes #221006 Raw Edit

Something

public text v1 · immutable
#221006 ·published 2006-10-25 13:32 UTC
rendered paste body
    GLuint *textures = (GLuint*)malloc(2*sizeof(GLuint));
    textures[0] = ta.tex;
    textures[1] = tb.tex;
    GLboolean *resid = (GLboolean*)malloc(2*sizeof(GLboolean));
    memset(resid, 0, 2*sizeof(GLboolean));
    glAreTexturesResident(2, textures, resid);
    
    printf("ta: %d\ntb: %d\n", (uint)resid[0], (uint)resid[1]);