From f8fe689a81f906d1b91bb3220acde2a4ecb14c5b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 6 May 2024 05:01:46 +0200 Subject: Adding upstream version 6.0.4-dfsg. Signed-off-by: Daniel Baumann --- .../SharedOpenGL/unpacker/unpack_clipplane.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/VBox/HostServices/SharedOpenGL/unpacker/unpack_clipplane.c (limited to 'src/VBox/HostServices/SharedOpenGL/unpacker/unpack_clipplane.c') diff --git a/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_clipplane.c b/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_clipplane.c new file mode 100644 index 00000000..462f28e5 --- /dev/null +++ b/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_clipplane.c @@ -0,0 +1,19 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#include "unpacker.h" +#include "cr_mem.h" +#include "unpack_extend.h" + +void crUnpackClipPlane( void ) +{ + GLenum plane = READ_DATA( 0, GLenum ); + GLdouble equation[4]; + crMemcpy( equation, DATA_POINTER( 4, GLdouble ), sizeof(equation) ); + + cr_unpackDispatch.ClipPlane( plane, equation ); + INCR_DATA_PTR( sizeof( GLenum ) + 4*sizeof( GLdouble )); +} -- cgit v1.2.3