Author: jgardou
Date: Mon Jan 6 19:25:17 2014
New Revision: 61546
URL:
http://svn.reactos.org/svn/reactos?rev=61546&view=rev
Log:
[OPENGL32]
- remove useless assert
- fix typo in SetDIBitstoDevice call
Modified:
trunk/reactos/dll/opengl/opengl32/swimpl.c
Modified: trunk/reactos/dll/opengl/opengl32/swimpl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/opengl/opengl32/swimpl…
==============================================================================
--- trunk/reactos/dll/opengl/opengl32/swimpl.c [iso-8859-1] (original)
+++ trunk/reactos/dll/opengl/opengl32/swimpl.c [iso-8859-1] Mon Jan 6 19:25:17 2014
@@ -204,7 +204,6 @@
DIB_RGB_COLORS,
(void**)&srb->swrast.Buffer,
NULL, 0);
- assert(srb->hbmp);
if(!srb->hbmp)
{
ERR("Failed to create the DIB section for the front buffer, %lu.\n",
GetLastError());
@@ -554,6 +553,7 @@
!_tnl_CreateContext(&sw_ctx->mesa) ||
!_swsetup_CreateContext(&sw_ctx->mesa))
{
+ ERR("Failed initializing helpers.\n");
_mesa_free_context_data(&sw_ctx->mesa);
free(sw_ctx);
return NULL;
@@ -809,7 +809,7 @@
0,
0,
0,
- fb->bmi.bmiHeader.biWidth,
+ fb->bmi.bmiHeader.biHeight,
fb->backbuffer.Buffer,
&fb->bmi,
DIB_RGB_COLORS) != 0);