equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
500 // destination surface that are maintained at the native level |
500 // destination surface that are maintained at the native level |
501 oglc = NULL; |
501 oglc = NULL; |
502 dstOps = NULL; |
502 dstOps = NULL; |
503 } |
503 } |
504 break; |
504 break; |
505 case sun_java2d_pipe_BufferedOpCodes_SAVE_STATE: |
|
506 { |
|
507 j2d_glPushAttrib(GL_ALL_ATTRIB_BITS); |
|
508 j2d_glPushClientAttrib(GL_CLIENT_ALL_ATTRIB_BITS); |
|
509 j2d_glMatrixMode(GL_MODELVIEW); |
|
510 j2d_glPushMatrix(); |
|
511 j2d_glMatrixMode(GL_PROJECTION); |
|
512 j2d_glPushMatrix(); |
|
513 j2d_glMatrixMode(GL_TEXTURE); |
|
514 j2d_glPushMatrix(); |
|
515 } |
|
516 break; |
|
517 |
|
518 case sun_java2d_pipe_BufferedOpCodes_RESTORE_STATE: |
|
519 { |
|
520 j2d_glPopAttrib(); |
|
521 j2d_glPopClientAttrib(); |
|
522 j2d_glMatrixMode(GL_MODELVIEW); |
|
523 j2d_glPopMatrix(); |
|
524 j2d_glMatrixMode(GL_PROJECTION); |
|
525 j2d_glPopMatrix(); |
|
526 j2d_glMatrixMode(GL_TEXTURE); |
|
527 j2d_glPopMatrix(); |
|
528 } |
|
529 break; |
|
530 case sun_java2d_pipe_BufferedOpCodes_SYNC: |
505 case sun_java2d_pipe_BufferedOpCodes_SYNC: |
531 { |
506 { |
532 sync = JNI_TRUE; |
507 sync = JNI_TRUE; |
533 } |
508 } |
534 break; |
509 break; |