On 25 September 2010 23:45, Stefan Dösinger stefan@codeweavers.com wrote:
- struct
- {
D3DFORMAT fmt;
const char *name;
- }
- formats[] =
- {
{ D3DFMT_R5G6B5, "D3DFMT_R5G6B5" },
{ D3DFMT_X8R8G8B8, "D3DFMT_X8R8G8B8" },
{ D3DFMT_A8R8G8B8, "D3DFMT_A8R8G8B8" },
{ D3DFMT_A16B16G16R16F, "D3DFMT_A16B16G16R16F" },
{ D3DFMT_A32B32G32R32F, "D3DFMT_A32B32G32R32F" },
- };
This should be static const. I recently fixed a number of these.
- const float quad[] = {
-1.0, -1.0, 0.1, 0.0, 0.0,
-1.0, 1.0, 0.1, 1.0, 0.0,
1.0, -1.0, 0.1, 0.0, 1.0,
1.0, 1.0, 0.1, 1.0, 1.0
- };
Please use a proper structure?