Skip to content

Commit 18e58fe

Browse files
committed
Small fixes javafxports#3
- added missing members for native MeshView-struct - changed 'la' to correct data-type in native setPointLight-operation
1 parent 93a0fa5 commit 18e58fe

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

modules/javafx.graphics/src/main/native-prism-es2/GLContext.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2275,7 +2275,7 @@ JNIEXPORT void JNICALL Java_com_sun_prism_es2_GLContext_nSetAmbientLight
22752275
*/
22762276
JNIEXPORT void JNICALL Java_com_sun_prism_es2_GLContext_nSetPointLight
22772277
(JNIEnv *env, jclass class, jlong nativeCtxInfo, jlong nativeMeshViewInfo,
2278-
jint index, jfloat x, jfloat y, jfloat z, jfloat r, jfloat g, jfloat b, jfloat w, jfloat range, jfloat ca, ifloat la, jfloat qa)
2278+
jint index, jfloat x, jfloat y, jfloat z, jfloat r, jfloat g, jfloat b, jfloat w, jfloat range, jfloat ca, jfloat la, jfloat qa)
22792279
{
22802280
ContextInfo *ctxInfo = (ContextInfo *) jlong_to_ptr(nativeCtxInfo);
22812281
MeshViewInfo *meshViewInfo = (MeshViewInfo *) jlong_to_ptr(nativeMeshViewInfo);

modules/javafx.graphics/src/main/native-prism-es2/PrismES2Defs.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,10 @@ struct MeshViewInfoRec {
380380
GLfloat pointLightWeight;
381381
GLfloat pointLightPosition[3];
382382
GLfloat pointLightColor[3];
383+
384+
GLfloat pointLightRange;
385+
GLfloat pointLightAttenuation[3];
386+
383387
GLboolean cullEnable;
384388
GLenum cullMode;
385389
GLenum fillMode;

0 commit comments

Comments
 (0)