Commit abab4739 by Lubosz Sarnecki Committed by Commit Bot

capture_gles_1_0: Implement ES1 capture functions.

Capture glLight, glLightModel and glMaterial and adjust size by enum. Bug: angleproject:5751 Change-Id: I2fcf35575e344703033bf426c3ed0046dfe93337 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2859825Reviewed-by: 's avatarCody Northrop <cnorthrop@google.com> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Cody Northrop <cnorthrop@google.com>
parent cc3e7b5d
......@@ -7,6 +7,7 @@
// Pointer parameter capture functions for the OpenGL ES 1.0 entry points.
#include "libANGLE/capture/capture_gles_1_0_autogen.h"
#include "libANGLE/queryutils.h"
using namespace angle;
......@@ -173,7 +174,8 @@ void CaptureLightModelfv_params(const State &glState,
const GLfloat *params,
ParamCapture *paramCapture)
{
UNIMPLEMENTED();
unsigned int size = GetLightModelParameterCount(pname);
CaptureMemory(params, sizeof(GLfloat) * size, paramCapture);
}
void CaptureLightModelxv_param(const State &glState,
......@@ -182,7 +184,8 @@ void CaptureLightModelxv_param(const State &glState,
const GLfixed *param,
ParamCapture *paramCapture)
{
UNIMPLEMENTED();
unsigned int size = GetLightModelParameterCount(pname);
CaptureMemory(param, sizeof(GLfixed) * size, paramCapture);
}
void CaptureLightfv_params(const State &glState,
......@@ -192,7 +195,8 @@ void CaptureLightfv_params(const State &glState,
const GLfloat *params,
ParamCapture *paramCapture)
{
UNIMPLEMENTED();
unsigned int size = GetLightParameterCount(pnamePacked);
CaptureMemory(params, sizeof(GLfloat) * size, paramCapture);
}
void CaptureLightxv_params(const State &glState,
......@@ -202,7 +206,8 @@ void CaptureLightxv_params(const State &glState,
const GLfixed *params,
ParamCapture *paramCapture)
{
CaptureMemory(params, sizeof(GLfixed), paramCapture);
unsigned int size = GetLightParameterCount(pnamePacked);
CaptureMemory(params, sizeof(GLfixed) * size, paramCapture);
}
void CaptureLoadMatrixf_m(const State &glState,
......@@ -228,7 +233,8 @@ void CaptureMaterialfv_params(const State &glState,
const GLfloat *params,
ParamCapture *paramCapture)
{
UNIMPLEMENTED();
unsigned int size = GetMaterialParameterCount(pnamePacked);
CaptureMemory(params, sizeof(GLfloat) * size, paramCapture);
}
void CaptureMaterialxv_param(const State &glState,
......@@ -238,7 +244,8 @@ void CaptureMaterialxv_param(const State &glState,
const GLfixed *param,
ParamCapture *paramCapture)
{
UNIMPLEMENTED();
unsigned int size = GetMaterialParameterCount(pnamePacked);
CaptureMemory(param, sizeof(GLfixed) * size, paramCapture);
}
void CaptureMultMatrixf_m(const State &glState,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment