Fix signature of queryTexture