This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository direct3d.
View the commit online.
commit 8ed27435c4ea286fbdd6f65972737ba61e3cbd36
Author: Vincent Torri <vto...@outlook.fr>
AuthorDate: Tue Aug 2 07:51:32 2022 +0200
remove useless code, fix a typo in comment
---
src/d3d_1.c | 2 +-
src/d3d_2.c | 16 +---------------
src/d3d_3.c | 16 +---------------
src/d3d_4.c | 16 +---------------
src/d3d_5.c | 16 +---------------
5 files changed, 5 insertions(+), 61 deletions(-)
diff --git a/src/d3d_1.c b/src/d3d_1.c
index e8e6eb3..2e062eb 100644
--- a/src/d3d_1.c
+++ b/src/d3d_1.c
@@ -411,7 +411,7 @@ void d3d_render(D3d *d3d)
/*
* Output Merger stage
*
- * OMSetRenderTargets() called in the resize() calback
+ * OMSetRenderTargets() called in the resize() callback
*/
/*
diff --git a/src/d3d_2.c b/src/d3d_2.c
index aa743be..aa17733 100644
--- a/src/d3d_2.c
+++ b/src/d3d_2.c
@@ -622,21 +622,7 @@ void object_free(void *o)
void d3d_scene_begin(D3d *d3d)
{
- DXGI_SWAP_CHAIN_DESC1 desc;
Object *o;
- HRESULT res;
- int w;
- int h;
-
- res = IDXGISwapChain1_GetDesc1(d3d->dxgi_swapchain, &desc);
- if (FAILED(res))
- return;
-
- w = desc.Width;
- h = desc.Height;
-
- printf(" * swapchain size : %d %d\n", w, h);
- fflush(stdout);
o = triangle_new(d3d,
320, 120,
@@ -698,7 +684,7 @@ void d3d_render(D3d *d3d)
/*
* Output Merger stage
*
- * OMSetRenderTargets() called in the resize() calback
+ * OMSetRenderTargets() called in the resize() callback
*/
/* Input Assembler (IA) stage */
diff --git a/src/d3d_3.c b/src/d3d_3.c
index e6902d4..77d5852 100644
--- a/src/d3d_3.c
+++ b/src/d3d_3.c
@@ -643,21 +643,7 @@ void object_free(void *o)
void d3d_scene_begin(D3d *d3d)
{
- DXGI_SWAP_CHAIN_DESC1 desc;
Object *o;
- HRESULT res;
- int w;
- int h;
-
- res = IDXGISwapChain1_GetDesc1(d3d->dxgi_swapchain, &desc);
- if (FAILED(res))
- return;
-
- w = desc.Width;
- h = desc.Height;
-
- printf(" * swapchain size : %d %d\n", w, h);
- fflush(stdout);
o = triangle_new(d3d,
320, 120,
@@ -720,7 +706,7 @@ void d3d_render(D3d *d3d)
/*
* Output Merger stage
*
- * OMSetRenderTargets() called in the resize() calback
+ * OMSetRenderTargets() called in the resize() callback
*/
/* Input Assembler (IA) stage */
diff --git a/src/d3d_4.c b/src/d3d_4.c
index a28325b..cde4285 100644
--- a/src/d3d_4.c
+++ b/src/d3d_4.c
@@ -752,21 +752,7 @@ void object_free(void *o)
void d3d_scene_begin(D3d *d3d)
{
- DXGI_SWAP_CHAIN_DESC1 desc;
Object *o;
- HRESULT res;
- int w;
- int h;
-
- res = IDXGISwapChain1_GetDesc1(d3d->dxgi_swapchain, &desc);
- if (FAILED(res))
- return;
-
- w = desc.Width;
- h = desc.Height;
-
- printf(" * swapchain size : %d %d\n", w, h);
- fflush(stdout);
o = triangle_new(d3d,
320, 120,
@@ -836,7 +822,7 @@ void d3d_render(D3d *d3d)
/*
* Output Merger stage
*
- * OMSetRenderTargets() called in the resize() calback
+ * OMSetRenderTargets() called in the resize() callback
*/
diff --git a/src/d3d_5.c b/src/d3d_5.c
index 9f031fc..d229b15 100644
--- a/src/d3d_5.c
+++ b/src/d3d_5.c
@@ -788,21 +788,7 @@ void object_free(void *o)
void d3d_scene_begin(D3d *d3d)
{
- DXGI_SWAP_CHAIN_DESC1 desc;
Object *o;
- HRESULT res;
- int w;
- int h;
-
- res = IDXGISwapChain1_GetDesc1(d3d->dxgi_swapchain, &desc);
- if (FAILED(res))
- return;
-
- w = desc.Width;
- h = desc.Height;
-
- printf(" * swapchain size : %d %d\n", w, h);
- fflush(stdout);
o = triangle_new(d3d,
320, 120,
@@ -872,7 +858,7 @@ void d3d_render(D3d *d3d)
/*
* Output Merger stage
*
- * OMSetRenderTargets() called in the resize() calback
+ * OMSetRenderTargets() called in the resize() callback
*/
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.