| 345 | } |
| 346 | |
| 347 | BufferFormat getCompatibleBufferFormat(D3DFORMAT format) { |
| 348 | switch(format) { |
| 349 | case D3DFMT_A8B8G8R8: |
| 350 | return BufferFormatAbgr; |
| 351 | case D3DFMT_X8B8G8R8: |
| 352 | return BufferFormatAbgr; |
| 353 | case D3DFMT_R8G8_B8G8: |
| 354 | return BufferFormatRgbg; |
| 355 | case D3DFMT_A8R8G8B8: |
| 356 | return BufferFormatArgb; |
| 357 | case D3DFMT_X8R8G8B8: |
| 358 | return BufferFormatArgb; |
| 359 | default: |
| 360 | return BufferFormatArgb; |
| 361 | } |
| 362 | } |
no outgoing calls
no test coverage detected