[opengl] Another possible fix for the BadMatch error