DXGL r61 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r60‎ | r61 | r62 >
Date:20:08, 31 December 2011
Author:admin
Status:new
Tags:
Comment:
Remove RGB565 format; has compatibility issues
Modified paths:
  • /ddraw/glDirectDrawSurface.cpp (modified) (history)
  • /ddraw/glExtensions.h (modified) (history)

Diff [purge]

Index: ddraw/glDirectDrawSurface.cpp
@@ -340,7 +340,7 @@
341341 case 16:
342342 texformat = GL_RGB;
343343 texformat2 = GL_UNSIGNED_SHORT_5_6_5;
344 - texformat3 = GL_RGB565;
 344+ texformat3 = GL_RGB;
345345 ddsd.ddpfPixelFormat.dwFlags = DDPF_RGB;
346346 ddsd.ddpfPixelFormat.dwRBitMask = 0xF800;
347347 ddsd.ddpfPixelFormat.dwGBitMask = 0x7E0;
Index: ddraw/glExtensions.h
@@ -25,9 +25,6 @@
2626 #ifndef GL_STENCIL_BUFFER
2727 #define GL_STENCIL_BUFFER 0x8224
2828 #endif
29 -#ifndef GL_RGB565
30 -#define GL_RGB565 0x8D62
31 -#endif
3229
3330 extern int GLEXT_ARB_framebuffer_object;
3431 extern int GLEXT_EXT_framebuffer_object;