[Bug 47955] Celestia hit fallback on r300g from git?
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Mar 27 23:17:54 PDT 2012
https://bugs.freedesktop.org/show_bug.cgi?id=47955
--- Comment #9 from Andrew Randrianasulu <randrik at mail.ru> 2012-03-27 23:17:54 PDT ---
as far as I can see in celestia-1.6.1/src/celengine/render.cpp (function void
Renderer::PointStarVertexBuffer::startSprites() ) - it uses some combination of
GL_ARB_point_sprite and vertex shaders .... Any ideas what can fail with this
combo on rs600 ?
----------------------------
void Renderer::PointStarVertexBuffer::startSprites(const GLContext& _context)
{
context = &_context;
assert(context->getVertexProcessor() != NULL || !useSprites); // vertex
shaders required for new star rendering
unsigned int stride = sizeof(StarVertex);
glEnableClientState(GL_VERTEX_ARRAY);
glVertexPointer(3, GL_FLOAT, stride, &vertices[0].position);
glEnableClientState(GL_COLOR_ARRAY);
glColorPointer(4, GL_UNSIGNED_BYTE, stride, &vertices[0].color);
VertexProcessor* vproc = context->getVertexProcessor();
vproc->enable();
vproc->use(vp::starDisc);
vproc->enableAttribArray(6);
vproc->attribArray(6, 1, GL_FLOAT, stride, &vertices[0].size);
glDisableClientState(GL_TEXTURE_COORD_ARRAY);
glDisableClientState(GL_NORMAL_ARRAY);
glEnable(GL_POINT_SPRITE_ARB);
glTexEnvi(GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE);
useSprites = true;
}
--------------------------------------------
Any piglit test?
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the dri-devel
mailing list