mirror of
https://github.com/reactos/reactos.git
synced 2024-10-20 08:01:05 +00:00
[OPENGL32]
- fix an off-by-one error svn path=/trunk/; revision=63615
This commit is contained in:
parent
b6f7dca618
commit
aa7c4d673d
|
@ -439,7 +439,7 @@ BOOL sw_SetPixelFormat(HDC hdc, struct wgl_dc_data* dc_data, INT format)
|
||||||
TRACE("OpenGL software implementation START!\n");
|
TRACE("OpenGL software implementation START!\n");
|
||||||
|
|
||||||
/* allocate our structure */
|
/* allocate our structure */
|
||||||
fb = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, FIELD_OFFSET(struct sw_framebuffer, bmi.bmiColors[2]));
|
fb = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, FIELD_OFFSET(struct sw_framebuffer, bmi.bmiColors[3]));
|
||||||
if(!fb)
|
if(!fb)
|
||||||
{
|
{
|
||||||
ERR("HeapAlloc FAILED!\n");
|
ERR("HeapAlloc FAILED!\n");
|
||||||
|
|
Loading…
Reference in a new issue