DXGL r683 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r682‎ | r683 | r684 >
Date:23:40, 24 August 2016
Author:admin
Status:new
Tags:
Comment:
Update release version.
Disable some WIP code for release.
Modified paths:
  • /ReadMe.md (modified) (history)
  • /common/releasever.h (modified) (history)
  • /ddraw/glRenderer.cpp (modified) (history)

Diff [purge]

Index: ReadMe.md
@@ -1,4 +1,4 @@
2 -# DXGL 0.5.9
 2+# DXGL 0.5.10
33 https://www.dxgl.info
44
55 ## Introduction
Index: common/releasever.h
@@ -4,7 +4,7 @@
55
66 #define DXGLMAJORVER 0
77 #define DXGLMINORVER 5
8 -#define DXGLPOINTVER 9
 8+#define DXGLPOINTVER 10
99
1010 #define STR2(x) #x
1111 #define STR(x) STR2(x)
Index: ddraw/glRenderer.cpp
@@ -1404,12 +1404,12 @@
14051405 }
14061406 BufferObject_Create(&This->pbo, This->ext, This->util);
14071407 BufferObject_SetData(This->pbo, GL_PIXEL_PACK_BUFFER, width*height * 4, NULL, GL_STREAM_READ);
1408 - ZeroMemory(&This->state, sizeof(RenderState));
 1408+ /*ZeroMemory(&This->state, sizeof(RenderState));
14091409 This->state.cmd = &This->cmd1;
14101410 glRenderer__InitCommandBuffer(This, &This->cmd1, width * height * (NextMultipleOf8(bpp) / 8));
14111411 glRenderer__InitCommandBuffer(This, &This->cmd2, width * height * (NextMultipleOf8(bpp) / 8));
14121412 BufferObject_Map(This->cmd1.vertices, GL_ARRAY_BUFFER, GL_WRITE_ONLY);
1413 - BufferObject_Map(This->cmd1.indices, GL_ELEMENT_ARRAY_BUFFER, GL_WRITE_ONLY);
 1413+ BufferObject_Map(This->cmd1.indices, GL_ELEMENT_ARRAY_BUFFER, GL_WRITE_ONLY);*/
14141414 TRACE_SYSINFO();
14151415 return TRUE;
14161416 }