-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

HENRY David wrote:
> Hello,
> 
> I'm using xorg-edgers' packages on Ubuntu Jaunty, so I have equivalent
> of mesa 7.5 from git (intel 945GM), up to date.

You might try building from source.  Some changes were recently (last
week?) made to the mesa_7_5_branch that change the way VBOs are
allocated on that platform.

> Recently (but unfortunately I can't tell exactly when), some of my own
> OpenGL programs using VBOs and glMapBuffer broke. I'm not sure if it's a
> bug of the intel DRI driver or a misuse of glMapBuffer, so I first ask
> on the list before possibly filling a bug report.
> 
> I'm attaching a little OpenGL program showing the problem. It displays a
> rotating cube. When using glMapBuffer/memcpy/glUnmapBuffer, it works for
> the first frame and crashes for the next one. If I use glBufferData it
> works fine.

Try two things:

1. Verify that sizeof(cube) == (24 * sizeof(struct VN_t)).
2. Change the GL_WRITE_ONLY_ARB to GL_READ_WRITE_ARB.

> Is it expected, or is it a bug?

It's certainly a bug.  The only question is in whose code. :)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkpCr2MACgkQX1gOwKyEAw+uTACdHyTQj7MaUBck7+bEEa2lLpya
1XYAn0bFAEUHo5ND3Vj9xoco2C37jeTp
=J85c
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to